https://issues.apache.org/bugzilla/show_bug.cgi?id=56518

--- Comment #7 from hanyong <observer.h...@alibaba-inc.com> ---
we are try to back-porting the fix in tomcat 8 to tomcat 7.
After some debugging, It seems the bug does not fixed in tomcat 8, but make it
more difficult to reproduce.
The root cause is that the SelectionKey is removed before the count down be
executed. 

I fixed the sample webapp to set the sleep time a little more than the
selectorTimeout, then I can reproduce the bug in tomcat 8.0.8.

I'm use ubuntu 12.04 32bit, oracle jdk 1.7.0_55, tomcat 8.0.8.

In a tomcat 8.0.8 clean install,
(1) edit "server.xml", in the Connector add maxConnections="10" to reproduce
this bug faster.
(2) remove origin ROOT in webapps, 'rm -rf conf/ROOT', deploy the sample webapp
to "webapps/ROOT.war".
(3) start tomcat.
(4) make plenty request to "/async.html", 

for (( i = 0; i < 15000; ++i )) ; do echo $i; curl localhost:8080/async.html;
done

wait a minute, then the curl client hangs, the connection limit will count up
to the max.

-- 
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