Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

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.


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.

Contact the core Jetty developers at
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