Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 4132 invoked from network); 25 Apr 2008 22:03:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Apr 2008 22:03:55 -0000 Received: (qmail 15074 invoked by uid 500); 25 Apr 2008 22:03:56 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 15029 invoked by uid 500); 25 Apr 2008 22:03:56 -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 15018 invoked by uid 99); 25 Apr 2008 22:03:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 15:03:56 -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.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 22:03:11 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 3F2631A9832; Fri, 25 Apr 2008 15:03:32 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r651707 - /apr/apr/branches/1.3.x/file_io/unix/copy.c Date: Fri, 25 Apr 2008 22:03:32 -0000 To: commits@apr.apache.org From: bojan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080425220332.3F2631A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bojan Date: Fri Apr 25 15:03:30 2008 New Revision: 651707 URL: http://svn.apache.org/viewvc?rev=651707&view=rev Log: Backport r651174 and 651704 from the trunk Make copy buffer bigger PR #44193 Modified: apr/apr/branches/1.3.x/file_io/unix/copy.c Modified: apr/apr/branches/1.3.x/file_io/unix/copy.c URL: http://svn.apache.org/viewvc/apr/apr/branches/1.3.x/file_io/unix/copy.c?rev=651707&r1=651706&r2=651707&view=diff ============================================================================== --- apr/apr/branches/1.3.x/file_io/unix/copy.c (original) +++ apr/apr/branches/1.3.x/file_io/unix/copy.c Fri Apr 25 15:03:30 2008 @@ -54,7 +54,8 @@ /* Copy bytes till the cows come home. */ while (1) { - char buf[BUFSIZ]; + char buf[BUFSIZ > APR_FILE_DEFAULT_BUFSIZE ? BUFSIZ + : APR_FILE_DEFAULT_BUFSIZE]; apr_size_t bytes_this_time = sizeof(buf); apr_status_t read_err; apr_status_t write_err;