There is a problem when the debug-parameter is set
to "true" in web.xml. The body.read() will block until
atleast one byte is read, so we need to check whether
there is anything to read.
Symptoms of this is when a cewolf-graph do not load
and the browser "hangs". To reproduce, manually craft
an HTTP/1.0 request with Connection: close header, and
watch how many times you need to press Enter after
the last Header-line...
Normally, this bug is not visible when using modern
browsers which use HTTP/1.1 and Connection: Keep-
Alive, because the servlet container (e.g Tomcat) won't
let Cewolf read anything more than what the Content-
Length header says there is (that would break the HTTP
protocol), but in the case of Connection: Close (default
in earlier HTTP protocols), the handling of the body is
left entirely to the servlet, at least with Tomcat.
Please apply this patch to CVS.
Log in to post a comment.