tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Sporadic failures in TestCometProcessor
Date Sun, 10 Jul 2011 09:28:17 GMT
I get sporadic failures in TestCometProcessor for NIO. They are due to
the Servlet reading two or more of the PING tokens during a single read
event call. The loop

                while (is.available() > 0) {
                    is.read();
                    count ++;
                }

then e.g. consumes PINGPING instead of PING and writes back "READ: 8 bytes".

Is this an error in the test case, e.g. if the chunks come in quickly
enough is it OK, that they might get combined into a single read event?
If so, we might want to add a little sleep in between sending the PING
lines.

Regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message