Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50780
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 17 Feb 2011 16:08:08 +0000 (16:08 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 17 Feb 2011 16:08:08 +0000 (16:08 +0000)
Fix memory leak in APR implementation of AJP connector introduced by the refactoring for bug 49884

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

java/org/apache/coyote/ajp/AjpAprProtocol.java
webapps/docs/changelog.xml

index 3db1d96..30a5269 100644 (file)
@@ -197,9 +197,6 @@ public class AjpAprProtocol extends AbstractAjpProtocol {
                     connections.put(socket, processor);
                     socket.setAsync(true);
                 } else {
-                    if (state == SocketState.OPEN) {
-                        connections.put(socket, processor);
-                    }
                     recycledProcessors.offer(processor);
                 }
                 return state;
index b652898..3021d7b 100644 (file)
       </fix>
     </changelog>
   </subsection>
+  <subsection name="Coyote">
+    <changelog>
+      <fix>
+        <bug>50780</bug>: Fix memory leak in APR implementation of AJP
+        connector introduced by the refactoring for <bug>49884</bug>. (markt) 
+      </fix>
+    </changelog>
+  </subsection>
   <subsection name="Jasper">
     <changelog>
       <fix>