Tomcat dropping connections during transfer using sendfile and APR Connector

929 Views Asked by At

I'm using Tomcat 7 (7.0.25) running on Oracle Java 1.6.0_30. I have libtcnative-1 installed and use the APR Connector (org.apache.coyote.http11.Http11AprProtocol).

I try to serve static files using sendfile (but it doesn't matter because this is reproducible without sendfile)

Everything works fine unless the user downloading the file keeps the "Save file" dialog open in his browser for too long. Whe the "save file" dialog is open for more then 10sec before the user clicks ok only a part of the downloaded file is being written on the users machine (usually about 1.08MB).

It seems to be a kind of connection timout due to no activity. Any ideas if there is a setting available to tune the timeout value? Or any idea how to circumvent the problem without getting rid of the APR Connector alltogether?

1

There are 1 best solutions below

4
On

The two settings which come to mind are disabledUploadTimeout and connectionTimeout. Can you pass on the values of these two ? You can find it in the server.xml file.