Followup to r1022303
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 13 Oct 2010 23:25:47 +0000 (23:25 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 13 Oct 2010 23:25:47 +0000 (23:25 +0000)
I think that releasing the socket should be done before passing it away to a poller.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1022323 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11NioProtocol.java

index 0c50409..5292415 100644 (file)
@@ -395,8 +395,8 @@ public class Http11NioProtocol extends AbstractHttp11JsseProtocol {
                 } else if (state == SocketState.OPEN){
                     // In keep-alive but between requests. OK to recycle
                     // processor. Continue to poll for the next request.
-                    socket.getPoller().add(socket);
                     release(socket);
+                    socket.getPoller().add(socket);
                 } else {
                     // Connection closed. OK to recycle the processor.
                     release(socket);