You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2006/03/30 20:57:13 UTC

svn commit: r390214 - /jakarta/httpcomponents/trunk/tcconnector/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java

Author: olegk
Date: Thu Mar 30 10:57:11 2006
New Revision: 390214

URL: http://svn.apache.org/viewcvs?rev=390214&view=rev
Log:
Fixed broken reset action

Modified:
    jakarta/httpcomponents/trunk/tcconnector/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java

Modified: jakarta/httpcomponents/trunk/tcconnector/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/tcconnector/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java?rev=390214&r1=390213&r2=390214&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/tcconnector/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java (original)
+++ jakarta/httpcomponents/trunk/tcconnector/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java Thu Mar 30 10:57:11 2006
@@ -165,7 +165,8 @@
                         this.conn.closeInput();
                         this.conn.closeOutput();
                     	manageHttpConnection();
-                        reset();
+                        resetRequest();
+                        resetResponse();
                 	} catch (HttpException ex) {
                 		LOG.debug("Malformed HTTP request");
                 		this.httpres = processHttpException(ex);
@@ -433,10 +434,13 @@
     	}
     }
 
-    private void reset() {
+    private void resetRequest() {
         this.coyotereq.recycle();
-        this.coyoteres.recycle();
         this.httpreq = null;
+    }
+    
+    private void resetResponse() {
+        this.coyoteres.recycle();
         this.httpres = null;
     }
     
@@ -496,7 +500,7 @@
             }            
         } else if (actionCode == ActionCode.ACTION_RESET) {
             LOG.debug("Action Reset");
-            reset();
+            resetResponse();
         } else if (actionCode == ActionCode.ACTION_REQ_HOST_ADDR_ATTRIBUTE) {
             // Not implemetned
         } else if (actionCode == ActionCode.ACTION_REQ_HOST_ATTRIBUTE) {