tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronald Klop <>
Subject Re: PDF Delivery switching to byte ranges for slower connections.
Date Wed, 18 Jul 2007 15:38:25 GMT
Is this static content or served by a custom servlet?

If you can set the content-length of the response it shouldn't use chunked encoding.
PS: I'm not a Tomcat developer, so I could be wrong about this.

On Wed Jul 18 14:45:42 CEST 2007 Tomcat Users List <> wrote:
> Hi all,
> I'm using the HTTP connector and am having a few issues delivering
> PDF's from Tomcat 4.1 and was wondering if anyone could shed any
> light.
> The problem:
> When requesting a PDF about 1.3MB in size, on the local LAN bypassing
> the reverse proxy, it works fine, however when using wget to limit the
> connection rate down to about 20kbps Tomcat appears to detect my
> connection is slower, and attempts to send a chunk of the file rather
> than the whole file, this can be seen in the access log as the request
> size changes depending on my connection speed.
> As soon I my request reaches the size reported for this specific
> request in the access log, the connection closes, and my client
> retries to get the file from the beginning.
> Questions:
> Can I turn this feature off and prevent Tomcat from attempting to
> serve byte ranges depending on fast it calculates it will take the
> client to download the file.
> Is the Connector setting 'allowChunking=false' the way to go?, is
> turning this off known to cause knock on effects HTML/Image delivery?
> Thanks in advance.
> Mark.
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message