You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2012/11/19 21:37:55 UTC

Re:[OT] Servlet response blocking - problems with flush

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Baron,

On 11/18/12 9:00 PM, Baron Von Awsm wrote:
> I posted my issue at
> 
> http://stackoverflow.com/questions/13446483/tomcat-servlet-response-blocking-problems-with-flush
>
>  then discovered this mailing list.
> 
> In the post cited above, I go into the details of the issues I'm
> having. An help appreciated.

I see you identified and fixed your problem (needed Connection:close
in the request) but I'm wondering why you didn't use HttpURLConnection
instead of bare sockets in your client? HttpURLConnection does nice
things like handling chunked encoding for you (for both the request
*and* the response).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlCqmKMACgkQ9CaO5/Lv0PAAzACgi0bYzFxcdAFT9kEgF0mrLdUE
MBMAoJQ1yA6njZNHrp9CHBPYQV9VZBoK
=J/qw
-----END PGP SIGNATURE-----

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