Thanks for the response, btw we wrote a sample code to spin a thread and do the same creating a new socket and still see its more then 5 secs..
confdHaFd = socket(AF_INET, SOCK_STREAM, 0))
confd_ha_connect(confdHaFd, (struct sockaddr*)&confdsockaddr,
sizeof (struct sockaddr_in),
CONFD_SEC_TOKEN) < 0)
is their any way to debug why this takes more than 5 secs ?. I am planning to add 1 log after each to see if connect taking more time or status.