add timouts for send and recv with blocking sockets.

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


Hi,

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.

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

Rein.
-- 
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: socktimeout.diff
Type: text/diff
Size: 3804 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040930/a5e3b926/socktimeout.bin


More information about the wine-patches mailing list