Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 4086 invoked from network); 23 May 2008 20:34:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2008 20:34:57 -0000 Received: (qmail 83764 invoked by uid 500); 23 May 2008 20:34:54 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 83724 invoked by uid 500); 23 May 2008 20:34:54 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 83713 invoked by uid 500); 23 May 2008 20:34:54 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 83710 invoked by uid 99); 23 May 2008 20:34:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 13:34:54 -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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 20:34:08 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 0678A234C11E; Fri, 23 May 2008 13:34:30 -0700 (PDT) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 45071] New: Sendfile on APR connector can truncate downloads. X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Connectors X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alex@planet-barclay.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tomcat-dev@jakarta.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 23 May 2008 13:34:30 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45071 Summary: Sendfile on APR connector can truncate downloads. Product: Tomcat 6 Version: 6.0.16 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Connectors AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: alex@planet-barclay.com Created an attachment (id=21992) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21992) Patch to alter APR sendfile thread timeout behavior The APR connector currently sets a TTL on the socket in its poller loop. Unfortunately this TTL is based on soTimeout and refers to the entire download. This manifests itself during large file downloads (our app is around 5-10MB). The Poll.maintain(...) fires and the socket gets closed mid-transfer. The attached patch changes this behavior such that the TTL is reset on socket activity. This now means that inactivity of 20 secs (the default from server.xml (connectionTimeout) applies to each write. So long as the client is taking data, albeit slowly, the transfer will be allowed to continue. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org