This is the mail archive of the
cygwin
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:
> 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.
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.
Thanks again,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
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