You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Maxim Neshcheret <Ma...@cma.ru> on 2015/05/25 11:21:45 UTC

Tomcat HTTP response chunk size

Dear All

Please advise if there are any possibility to set HTTP response chunk size for Tomcat to make it transparent for application that send HTTP response.

BR,
Maxim



Re: Tomcat HTTP response chunk size

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Maxim,

On 5/25/15 2:22 PM, Maxim Neshcheret wrote:
> Thank you for reply! Any chance to manage buffer size in Tomcat?
> Do you now if it is recommended approach?

What is the problem you are trying to solve?

You can affect the chunk size using either of these techniques:

1. Set the buffer size for the response
2. Call ServletOutputStream.flush()

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVZG6ZAAoJEBzwKT+lPKRYeVwP/12Mkp3CTQ153kIZlyykQTog
jcZuz8/MFY5xelIb2p9MmYJlYJK2foA8BZ3uGLE61SCVofbBkIM6HxsgvcaKTov8
eShFaMylO3sqDCtGrYYiev5V18WTlgTOXMDVJXnjqfWLtQRwf3CNSby3tgX7Nwg/
oJ3m3NN1uDSc7frUHJGRXkKy2gJbBWoVroIw+7XMC/mPDSOGKf0Lt5ngGy3TZiTu
Fw0+c2hzbOhJKe8YvM1ZFHiXZv4V1RxMXWdc5DfEYV2aKi1qGIcNtEQ49oSxrJzC
pzPRg3BjpAcP5c32ovQAu6+d9T/ttR08mecOLugJpZHQTEWfYcR1cP1w1N7VY0JH
WqCtB8qj/amForMTiGVExyhayjAYwX5d0COwqUkU4quDflLeDlL9bWD2rD00T3g/
rnQf2sHoN1EgrQAWTMXadPVLAeBfOxxDrapyV/5wEB1hWqPVesxLGUiW5Gt1qk/a
s3HF4iH/j6yrH+YHKchg62qgzvajQz71MRCjuPaB0yTScPBe1+2eTV0QhoNusHir
6RNITUaQv+35hWD9mG4CMUwI/vIkeshKLvfZz247x/RTPLJskgeurdQKrezfgFw0
a8aQsSjUhuVM2842mpMdvbdmnptDf6f+fwjONZsJneLjDJayOXZJMzFCkjTkliQP
vsO9ZyGYBcPCxm/haPhh
=x+4j
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat HTTP response chunk size

Posted by Maxim Neshcheret <Ma...@cma.ru>.
Hi Mark

Thank you for reply! Any chance to manage buffer size in Tomcat? Do you now if it is recommended approach?

BR,
Maxim

From:  Mark Thomas
Reply-To:  Tomcat Users List
Date:  Tuesday 26 May 2015 01:03
To:  Tomcat Users List
Subject:  Re: Tomcat HTTP response chunk size

On 25/05/2015 10:21, Maxim Neshcheret wrote:
 Dear All
 
 Please advise if there are any possibility to set HTTP response chunk size for Tomcat to make it transparent for application that send HTTP response.

Tomcat automatically handles chunked encoding for you. It is already
transparent.

Chunk size depends on buffer size.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




Re: Tomcat HTTP response chunk size

Posted by Mark Thomas <ma...@apache.org>.
On 25/05/2015 10:21, Maxim Neshcheret wrote:
> Dear All
> 
> Please advise if there are any possibility to set HTTP response chunk size for Tomcat to make it transparent for application that send HTTP response.

Tomcat automatically handles chunked encoding for you. It is already
transparent.

Chunk size depends on buffer size.

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org