This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Thanks for the quick response. Could you post the patch?

-----Original Message-----
From: Corinna Vinschen [] 
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:
> 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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]