This is the mail archive of the cygwin-developers@cygwin.com 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: PLEASE TEST: New implementation of blocking socket I/O


On Mar 31 09:55, Pierre A. Humblet wrote:
> I am hesitant to start sinking time in this. If I understand correctly you
> are trying to fix a race. They tend to go away while running under gdb.

The race is gone with this code.  It's no the problem to debug it
with gdb.

> In 310663 = write (3, 0x7DE810, 1), it's likely that 310663 is larger
> than the buffer size. Where can that come from? Can you add a trap?

There's a chance that the first call to WSAwhatever already returns
WSAEWOULDBLOCK and ret is uninitialized.  I've applied a fix which
always set ret to 0 in calls to WSAwhatever.  Does that help?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


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