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
- From: Uri Simchoni <uris at ctera dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Tue, 29 Dec 2009 01:07:05 -0500
- Subject: RE: Cygwin 1.7.1-1 - problem with non-blocking socket IO
- References: <20091228172405.GB15530@calimero.vinschen.de>
Thanks for the quick response. Could you post the patch?
From: Corinna Vinschen [mailto:email@example.com]
Sent: Monday, December 28, 2009 7:24 PM
Subject: 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