[Bug 1553] New: Overlapped I/O fails on sockets
Wine Bugs
wine-bugs at winehq.com
Sat Jun 28 10:58:42 CDT 2003
http://bugs.winehq.com/show_bug.cgi?id=1553
Summary: Overlapped I/O fails on sockets
Product: Wine
Version: CVS
Platform: PC
URL: http://www.tglsoft.de/misc/hamster_en.htm
OS/Version: Linux
Status: NEW
Keywords: regression, download
Severity: normal
Priority: P2
Component: wine-files
AssignedTo: wine-bugs at winehq.com
ReportedBy: prupe at myrealbox.com
Patch #8594 <http://www.winehq.
com/hypermail/wine-cvs/2003/06/0232.html> causes problems with
Hamster v2.0.0.1 (downloadable from <http://www.tglsoft.
de/misc/hamster_en.htm>), a local mail and news server.
When Hamster connects to a remote server and tries to read data,
it immediately loses the connection with an error. After some
debugging on my own, it seems that WS_select is noticing data
available for reading on the socket, but then ReadFile returns 0
bytes and STATUS_SUCCESS.
Reversing patch #8594 fixes the problem. Other networking apps
seem to work fine, so I suspect the problem is specific to
overlapped I/O on sockets.
A section of +file,+winsock logging before the patch
trace:winsock:__ws_select read 0x42592318, write (nil), excp
(nil) timeout 0x42592310
trace:winsock:fd_set_export
trace:file:ReadFile 0x70 0x41817388 1024 0x4259240c 0x425923f8
trace:file:FILE_ReadFileEx file 0x70 to buf 0x41817388 num 1024
0x425923f8 func (nil)
trace:file:GetOverlappedResult (0x70 0x425923f8 0x4259240c 0)
trace:file:GetOverlappedResult waiting on 0x425923f8
trace:file:FILE_AsyncReadService 0x425923f8 0x41817388
trace:file:FILE_AsyncReadService read 59 more bytes 59/1024 so
far
trace:file:GetOverlappedResult wait on 0x425923f8 returned 192
trace:file:GetOverlappedResult waiting on 0x425923f8
trace:file:GetOverlappedResult wait on 0x425923f8 returned 0
trace:file:GetOverlappedResult (0x70 0x425923f8 0x4259240c 0)
After the patch, there's just
trace:winsock:__ws_select read 0x42592318, write (nil), excp
(nil) timeout 0x42592310
trace:winsock:fd_set_export
trace:file:ReadFile 0x80 0x41817324 1024 0x4259240c 0x425923f8
trace:file:GetOverlappedResult (0x80 0x425923f8 0x4259240c 0)
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list