@selvamp, so I have found the issue to be with the value of health_check_value_timeouts. If you set that to 0, then it works. Anything other than that produces the socket error.
I am trying to find out why it functions this way. I will get back to you in a bit