[ws2_32] make closesocket cancel pending I/O operations

Damjan Jovanovic damjan.jov at gmail.com
Mon Dec 4 00:01:19 CST 2006

On Windows, calling closesocket in one thread causes blocking I/O
operations on that socket (select, accept) running in other threads to
return immediately. On Linux, the I/O will block forever. Calling
shutdown as part of closesocket reproduces the same behaviour under
Linux. Closes #4619 and #3777.

  * Call shutdown as part of closesocket, so that blocking I/O
functions on that socket running in other threads return immediately.
Closes #4619 and #3777.
  * Added tests for the above behaviour.

Damjan Jovanovic
-------------- next part --------------
A non-text attachment was scrubbed...
Name: closesocket.patch
Type: text/x-patch
Size: 3625 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061204/d8e0c986/closesocket-0001.bin

More information about the wine-patches mailing list