Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 64094 invoked from network); 7 May 2008 19:07:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 19:07:34 -0000 Received: (qmail 41712 invoked by uid 500); 7 May 2008 19:07:34 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 41663 invoked by uid 500); 7 May 2008 19:07:34 -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 41652 invoked by uid 99); 7 May 2008 19:07:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 12:07:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dirkx@webweaving.org designates 209.132.96.45 as permitted sender) Received: from [209.132.96.45] (HELO skutsje.san.webweaving.org) (209.132.96.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 19:06:41 +0000 Received: from [10.11.0.121] (5356CA0A.cable.casema.nl [83.86.202.10]) (authenticated bits=0) by skutsje.san.webweaving.org (8.12.9/8.12.9) with ESMTP id m47J6w2Q063912 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 7 May 2008 12:07:00 -0700 (PDT) (envelope-from dirkx@webweaving.org) Cc: APR Developer List Message-Id: <9E2FDF79-B212-4A11-B58C-BB4F26533B6A@webweaving.org> From: Dirk-Willem van Gulik To: Jim Jagielski In-Reply-To: <4B83778A-75C2-44B7-8670-D4C6085854BD@jagunet.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: sendfile in darwin Date: Wed, 7 May 2008 21:06:57 +0200 References: <48209AFD.9030604@rowe-clan.net> <2EA94233-5650-4168-9071-EE9B4B451C86@jaguNET.com> <3B4823DC-C723-47C8-85F6-01C25947728D@jaguNET.com> <827F5091-3959-41C0-8286-777AA3643885@jaguNET.com> <7D1DBBCE-871D-44ED-A6EC-8B9105C6C3E2@jaguNET.com> <9E084011-40B5-4906-9507-36BDDE2C0852@webweaving.org> <4B83778A-75C2-44B7-8670-D4C6085854BD@jagunet.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org On May 7, 2008, at 8:42 PM, Jim Jagielski wrote: > > On May 7, 2008, at 2:31 PM, Dirk-Willem van Gulik wrote: > >> Hmm - Jim - that does not quite solve the issue I was discussing on >> IRC; > > On IRC? What happened to onlist discussions?? :) Sorry - I was debugging something totally different (I thought) - and was checking that I was not beeing stupid. (see below for the discussion). Turned out it was related to yours. > >> I think below is needed (which does solve the TimeOut issue). >> >> --> diff with your version -- anticipate nbytes set to 0 (which has >> whole file semantics on BSD and Darwin). >> >> Does that make sense ? >> > > This looks like a patch on something that already patches > things... so I can't comment on whether this makes sense since > it includes a patch which I have no clue about. > > The addition of 'rv = 0' though on line ~453 is almost > for sure wrong... Hmm - it makes the "hangs" go away on BSD/Darwin - and preserves the use of the header/footer iovec's - which do matter for performance. I saw that you posted a more elaborate patch. Let me try that in the meantime. Dw