Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Limit Request Size

Hi,

i look for an way to define an hard limit for the Maximum Request size an client is able to send.
To be more specific mainly the request body is in my concern. The limit "maxFormContentSize" only works
for form data. But not for text/xml body and maybe even only if there is an content-length header.
But for security reason i like to limit raw upload also. That mean
1) If Content-Length is larger than limit close the connection the hard way.
2) If no content-lengthand there is read more than limit bytes from input stream/reader
  also disconnect the connection.
Since this is for security i think it should be an server parameter.

Gruß Thomas

Back to the top