Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 53470 invoked from network); 22 Jan 2006 04:58:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jan 2006 04:58:01 -0000 Received: (qmail 50078 invoked by uid 500); 22 Jan 2006 04:57:59 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 50037 invoked by uid 500); 22 Jan 2006 04:57:59 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 50026 invoked by uid 99); 22 Jan 2006 04:57:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 20:57:58 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rooneg@gmail.com designates 64.233.184.206 as permitted sender) Received: from [64.233.184.206] (HELO wproxy.gmail.com) (64.233.184.206) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2006 20:57:58 -0800 Received: by wproxy.gmail.com with SMTP id i31so704892wra for ; Sat, 21 Jan 2006 20:57:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MRPlDfEkC39zHCLRxZM0Ewj4G8K+0zUqo3WcSuhK4lMEmldFlrddGvqf1VuURxFja9sQO3p2PC8nDRbROkR45TV5+eh4uG2p77lT8cBzdt8TPDaKwoFV7GY/WjORFvPMcP4CoQOxa/K5eB2GLcFUtCzBhUMhMHK9hLssUUJNZO8= Received: by 10.54.152.18 with SMTP id z18mr4373872wrd; Sat, 21 Jan 2006 20:57:37 -0800 (PST) Received: by 10.54.121.15 with HTTP; Sat, 21 Jan 2006 20:57:37 -0800 (PST) Message-ID: <7edfeeef0601212057g49c29f0co4a11d2a53a9bd2c0@mail.gmail.com> Date: Sat, 21 Jan 2006 20:57:37 -0800 From: Garrett Rooney Sender: rooneg@gmail.com To: Norris Leong Subject: Re: [PATCH] win32 - dropped data in read_with_timeout Cc: dev@apr.apache.org In-Reply-To: <43D063E7.1050102@clustertech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43D063E7.1050102@clustertech.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 1/19/06, Norris Leong wrote: > 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. This seems reasonable to me, although I'm not anywhere close to a win32 expert, so I can't say for sure. Have you actually seen this race in practice, or is it just a theoretical possibility? I'm only asking because I'd be much more comfortable applying a patch if the contributor can say "this actually fixes a reproducable problem" ;-) -garrett