This is the mail archive of the
mailing list for the Cygwin project.
Re: Cygwin 1.7.1-1 - problem with non-blocking socket IO
On Dec 28 10:03, Uri Simchoni wrote:
> 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.
First of all, thanks for the testcase! I could reproduce the problem
easily and after some serious headscratching it turned out to be a
really miserable typo which I just didn't see earlier due to the usage
of a C++ parameter default. I've applied a patch in CVS. This will be
fixed in 1.7.2.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple