There is a max POST size limit attribute on the Connectors.

Otherwise - you can code for it too:
request.getContentLength() == Size of posted content. -1 if the client did not provide a Content length.


-Tim


Varley, Roger wrote:
Hi

I have an application where a client transmits data to a servlet by opening a URLConnection to the servlet and writing the data to the outputStream as a POST request which the servlet processes by reading the HttpServletRequest inputStream. What can I do to protect my servlet against a rogue client that opens the outputStream and trying to write multi-gigabytes of data and running the server out of memory or does Tomcat already have mechanisms in place to prevent this.

Regards
Roger

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to