https://bz.apache.org/bugzilla/show_bug.cgi?id=63182
--- Comment #2 from xax...@gmail.com --- Also if the code dosen't start a new thread to do the read operation, everything got fine. e.g. @Override public void onDataAvailable() throws IOException { System.out.println("onDataAvailable"); int c = in.read(new byte[1024]); System.out.println("read: " + c); if (c > 0) { count += c; System.out.println("\t\t\t\ttotal: " + MessageFormat.format("{0,number,#,##0}", count)); } boolean ready = in.isReady(); System.out.println("ready after: " + ready); if (ready) { onDataAvailable(); } } -- 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