From: kkolinko Date: Wed, 13 Oct 2010 23:25:47 +0000 (+0000) Subject: Followup to r1022303 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7159012296b6601cfb21748cd57dea88f63a50ba;p=tomcat7.0 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 --- 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);