tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45071] New: Sendfile on APR connector can truncate downloads.
Date Fri, 23 May 2008 20:34:30 GMT
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


Mime
View raw message