tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45071] New: Sendfile on APR connector can truncate downloads.
Date Fri, 23 May 2008 20:34:30 GMT

           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

Created an attachment (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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message