I am using Tomcat and Apache with the Ajp1.3 connector.

When I call GetInputStream() on the HttpServletRequest-Object and read from the stream 
to get the request-body, it never runs out of bytes. It never returns -1.

When the last byte of the request-body is read the streams simply starts again at the 
beginning of the body. The method available() 
always returns the correct number of bytes of the remaining request-body.

Example:

The request-body is 10 bytes long.
available() returns 10
I read 8 bytes - read(buffer) returns 8
available() returns 2
I read 3 bytes - read(buffer) returns 3 (and not 2)
available() returns 9

It this a known bug?

Dennis

Reply via email to