Cygwin 1.7.1-1 - problem with non-blocking socket IO

Uri Simchoni uris@ctera.com
Mon Dec 28 15:04:00 GMT 2009


Hi,

I seem to have a problem with non-blocking writes to TCP sockets and unix-domain sockets - they block.

The attached program illustrates it - it creates a socketpair(), sets one end to non-blocking and writes to it - expecting to get an EWOULDBLOCK. On my system it hangs.

With pipe() it works fine.

Please advise.
Thanks,
Uri

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nbtest2.c
URL: <http://cygwin.com/pipermail/cygwin/attachments/20091228/628cb021/attachment.c>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list