http://bugs.winehq.org/show_bug.cgi?id=9787
--- Comment #225 from Scott Lindeneau slindeneau@gmail.com 2008-07-18 11:36:56 --- (In reply to comment #224)
Sorry guys, that isn't the AcceptEx, Jon Griffiths submitted this as part of his TransmitFile/TransmitPackets implementation. This is merely forward to ws2_32, acceptex implementation there is stubbed yet so no changes yet...
I haven't had time to throughly test it, but I believe that the correct implementation for AcceptEx (only accepting the connection, no data yet) is to set the error message to STATUS_PENDING instead of WSAWOULDBLOCK and then using add_completion immediately after (or in) the acceptex_recv function. Doing one or the other seems to cause fatal errors, doing both, however, seems to have the desired result (and from what I can tell, the missed connection problem goes away too). If i can work out how to make a patch I will test more and post one here the day after tomorrow. (work interferes)