apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norris Leong <mple...@clustertech.com>
Subject [PATCH] win32 - dropped data in read_with_timeout
Date Fri, 20 Jan 2006 04:15:35 GMT
Hi All,

I suspect that read_with_timeout (in file_io/win32/readwrite.c) may drop 
data if

(i) WaitForSingleObject (line 82) returns WAIT_TIMEOUT, and
(ii) Data arrived before the execution arrives at CancelIo (line 105).

Tried the attached patch and the problem seems solved.  I'm a novice of 
Windows' file mgmt API and would appreciate if somebody can validate 
this patch.

Norris Leong

View raw message