tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Performace - long time to release connection
Date Wed, 16 Apr 2008 18:29:27 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hassan,

Hassan Schroeder wrote:
| On Wed, Apr 16, 2008 at 9:25 AM, Danilo Luiz Rheinheimer
| <danilo_lr@yahoo.com> wrote:
|
| Probably not relevant :-) but
|
|>  response.setContentType("text/html");
|
| :: shouldn't that be ("application/json") ?

You might also want to specify the content encoding using either

response.setCharacterEncoding("utf8"); // or whatever

or

response.setContentType("application/json; charset=utf8");

The two content-length numbers are so close that you might actually be
getting incorrect multi-byte counts or something like that (although
that doesn't make much sense, really...).

In either case, it couldn't hurt.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgGRYcACgkQ9CaO5/Lv0PAslwCgqIaF9QIhIge7X4kvled1J9d5
77cAn0JaXj4slpH9jYs0FaTZRpoKIHD6
=iq4n
-----END PGP SIGNATURE-----

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


Mime
View raw message