the socket option is:
setsockopt(sendSocket, IPPROTO_TCP, TCP_NODELAY, (char *)&optval, sizeof(optval));
when the socket connects to the remote, if it fails, it takes
about 20 secs to return. Is there any way to reduce or control the timeout? Thanks.