hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r390214 - /jakarta/httpcomponents/trunk/tcconnector/src/java/org/apache/http/tcconnector/impl/HttpConnectionProcessor.java
Date Thu, 30 Mar 2006 18:57:13 GMT
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) {



Mime
View raw message