Commit the accepted proposal to prevent CLOSE_WAIT sockets.
authorjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 27 Oct 2007 08:25:56 +0000 (08:25 +0000)
committerjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 27 Oct 2007 08:25:56 +0000 (08:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@589062 13f79535-47bb-0310-9956-ffa450edef68

STATUS
java/org/apache/coyote/ajp/AjpProcessor.java
java/org/apache/coyote/ajp/AjpProtocol.java
webapps/docs/changelog.xml

diff --git a/STATUS b/STATUS
index 598d62b..0c9fed5 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -26,10 +26,6 @@ PATCHES PROPOSED TO BACKPORT:
   [ New proposals should be added at the end of the list ]
 
 
-* Harmonize with HTTP java.io code. Otherwise the socket is not closed. http://people.apache.org/~jfclere/patches/AjpPro.patch
-  +1: jfclere, fhanik, remm, pero, jim
-  -1:
-
 * Fix BZ 43588 - hard coded 127.0.0.1 for localhost
   http://issues.apache.org/bugzilla/attachment.cgi?id=21039&action=view
   +1: 
index 5dfe047..fe4e17c 100644 (file)
@@ -355,7 +355,7 @@ public class AjpProcessor implements ActionHook {
      *
      * @throws IOException error during an I/O operation
      */
-    public boolean process(Socket socket)
+    public void process(Socket socket)
         throws IOException {
         RequestInfo rp = request.getRequestProcessor();
         rp.setStage(org.apache.coyote.Constants.STAGE_PARSE);
@@ -471,8 +471,6 @@ public class AjpProcessor implements ActionHook {
         input = null;
         output = null;
         
-        return true;
-
     }
 
 
index 6b129c7..d54885f 100644 (file)
@@ -363,7 +363,8 @@ public class AjpProtocol
                     ((ActionHook) processor).action(ActionCode.ACTION_START, null);
                 }
 
-                return processor.process(socket);
+                processor.process(socket);
+                return false;
 
             } catch(java.net.SocketException e) {
                 // SocketExceptions are normal
index 6a8589c..5beda11 100644 (file)
   <subsection name="Coyote">
     <changelog>
       <fix>
+        Harmonize with HTTP java.io code. Otherwise the socket is not closed.
+      </fix>
+      <fix>
         In the APR connector, start accepting connections after fully starting
         the connector, to prevent possible exceptions due to non initialized fields. (remm)
       </fix>