add timouts for send and recv with blocking sockets.

Rein Klazes rklazes at
Thu Sep 30 10:32:23 CDT 2004


An application, in this case a news reader, sets a timeout on reading
data form a blocking socket by setting the SO_SNDTIMEO socket option
value to something a user can specify.
This does not work because wine uses a non-blocking recv, but blocks in
a poll with an infinite timeout.
Here is a straight forward fix. Let me know if something more
complicated is required.

	dlls/winsock	: socket.c
	- time out on recv from and send to blocking sockets.
	- fix timeout calculation in WS_setsockopt

Rein Klazes
rklazes at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: socktimeout.diff
Type: text/diff
Size: 3804 bytes
Desc: not available
Url :

More information about the wine-patches mailing list