From 7159012296b6601cfb21748cd57dea88f63a50ba Mon Sep 17 00:00:00 2001 From: kkolinko Date: Wed, 13 Oct 2010 23:25:47 +0000 Subject: [PATCH] Followup to r1022303 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/coyote/http11/Http11NioProtocol.java b/java/org/apache/coyote/http11/Http11NioProtocol.java index 0c5040930..529241565 100644 --- a/java/org/apache/coyote/http11/Http11NioProtocol.java +++ b/java/org/apache/coyote/http11/Http11NioProtocol.java @@ -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); -- 2.11.0