Select waits for NonBlocking fd

Anurag Sharma anurag@proximity.com.au
Thu Jul 4 03:02:00 GMT 2002


Hi All,

We have come across a peculiar problem while setting up sockets for
connection.

1) We make the socket non-blocking 
2) give it an invalid port to connect to on the localhost.
3) errno is correctly set to EINPROGRESS
4) Doing a select on the socket waits indefinetly!!

Attached is code that displays this  behaviour. This code works as
expected on linux.

Also if we check for socket error using  getsockopt before we do a select,
no error is returned. On linux it correctly returns 'Connection refused'.

Any Ideas??

Anurag
-------------- next part --------------
A non-text attachment was scrubbed...
Name: connect.C
Type: application/octet-stream
Size: 2441 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20020704/22d3cd1e/attachment.obj>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list