socket connect() question.

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.

Check out the thread:

socket timeout

Whoops! Forgot that the formatter was broken -

http://www.digi.com/support/forum/viewthread_thread,1526#5645