Jetty has moved!
Jetty is a project at the Eclipse Foundation.
Homepage:http://www.eclipse.org/jetty
Downloads: http://download.eclipse.org/jetty/
Documentation:http://www.eclipse.org/jetty/documentation/current/
About:http://www.eclipse.org/jetty/about.php
Jetty Powered:http://www.eclipse.org/jetty/powered/
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
Skip to end of metadata
Go to start of metadata

Disconnected while trying to download large files when using SelectChannelConnector

Detailed Description

This is a combination of the file being small enough to fit the Jetty file cache, but big enough to timeout (SO_TIMEOUT) while writing on the channel. If it timeouts, Jetty closes the connection.

Remedy

The maximum cached file size for a single file is controlled by the maxCachedFileSize parameter in the DefaultServlet. Default value is approximately 10GB. Timeout for SelectChannelConnector is controlled using setMaxIdleTime(int). Default value is 30 seconds.

If you are consistently running into these limits, play around with both these values to find a reasonable compromise for your application – either a longer timeout, or a smaller cache, or both.

  • No labels
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery