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

Mahesh,

On 3/5/2009 10:16 AM, Mahesh Seshan wrote:
> The task at hand for me is to prevent a HTTP client from issuing a
> request that has a huge payload that could pose a resource risk on the
> HTTP server.

Given Rainer's comments, it seems like a reasonable course of action is
to read bytes from the request until you hit a maximum that you set
(say, 1MB). At that point, you can stop reading and return an error code
to the client.

I don't know about chunked encoding, but I seem to recall that Tomcat
can't recycle a request connection until all the data has been read from
the client (even if it is discarded). Hopefully, someone will correct me
and that won't be the case.

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

iEYEARECAAYFAkm2hMwACgkQ9CaO5/Lv0PBx3wCgvJlnfFxQQ10oeGCJgdOAb0S1
47wAoJLxLpMK9PYJnArt1fX2dyKWpScb
=Dbpb
-----END PGP SIGNATURE-----

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

Reply via email to