https://bz.apache.org/bugzilla/show_bug.cgi?id=69545

--- Comment #13 from Remy Maucherat <r...@apache.org> ---
The scenario I found involved not calling available() properly. In the end I
haven't found a regression or new issue.

Basically the code in the ReadListener has to be:
do {
  int n = is.read(buf);
  if (n < 0) { // == -1 is ok too
    break;
  }
  // Do stuff
} while (is.isReady());

read returning 0 is always ok, and it needs to loop while isReady (even if read
keeps returning 0 bytes).

Not error prone at all ...

Please provide a test case to verify what is actually happening.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to