https://issues.apache.org/bugzilla/show_bug.cgi?id=56518
--- Comment #9 from hanyong <observer.h...@alibaba-inc.com> ---
Created attachment 31698
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31698&action=edit
fix bug 56518 based on https://svn.apache.org/repos/asf/tomcat/trunk@1595293

Here is my Quick and Dirty patch to fix this at tomcat 8.0.8 , hope it help for
a regular solution.
I also started a PR on github: https://github.com/apache/tomcat/pull/10

In NioEndpoint, save and retrieve SelectionKey in KeyAttachment.
When the socket is closed by the interrupt,
the associated SelectionKey may be removed by the poller thread before async
complete.
Then socket.keyFor() returns null, the connection count would not be reduced.
Save the key in the attachment could fix this.

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