Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 67325 invoked from network); 14 May 2008 18:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2008 18:46:24 -0000 Received: (qmail 24860 invoked by uid 500); 14 May 2008 18:46:25 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 24828 invoked by uid 500); 14 May 2008 18:46:25 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 24817 invoked by uid 99); 14 May 2008 18:46:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2008 11:46:25 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2008 18:45:47 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0BC8E2388A1B; Wed, 14 May 2008 11:46:03 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r656355 - /apr/apr/trunk/network_io/unix/sendrecv.c Date: Wed, 14 May 2008 18:46:02 -0000 To: commits@apr.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080514184603.0BC8E2388A1B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jim Date: Wed May 14 11:46:02 2008 New Revision: 656355 URL: http://svn.apache.org/viewvc?rev=656355&view=rev Log: Bypass the call to sendfile if *len is 0. This means we just worry about the footers. Modified: apr/apr/trunk/network_io/unix/sendrecv.c Modified: apr/apr/trunk/network_io/unix/sendrecv.c URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/unix/sendrecv.c?rev=656355&r1=656354&r2=656355&view=diff ============================================================================== --- apr/apr/trunk/network_io/unix/sendrecv.c (original) +++ apr/apr/trunk/network_io/unix/sendrecv.c Wed May 14 11:46:02 2008 @@ -451,6 +451,9 @@ } do { + if (!bytes_to_send) { + break; + } if (sock->options & APR_INCOMPLETE_WRITE) { apr_status_t arv; sock->options &= ~APR_INCOMPLETE_WRITE;