Mike and all,
I would like one minor non-functional change to go in before the RC2 is
released. Any objections to that?

Oleg


On Mon, 2003-10-13 at 00:17, Michael Becke wrote:
> 2.0 RC2 has been tagged in CVS and the distribution has been created.  
> I would appreciate it if someone could verify the documentation and the 
> builds before I push them to the official site.
> 
> <http://www.apache.org/~mbecke/httpclient-2.0-rc2/>
> 
> Thanks,
> 
> Mike
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
Index: HttpMethodBase.java
===================================================================
RCS file: /home/cvspublic/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
retrieving revision 1.159.2.13
diff -u -r1.159.2.13 HttpMethodBase.java
--- HttpMethodBase.java	12 Oct 2003 04:02:20 -0000	1.159.2.13
+++ HttpMethodBase.java	13 Oct 2003 10:58:33 -0000
@@ -868,12 +868,15 @@
     /**
      * Sets whether or not the connection should be force-closed when no longer 
      * needed. This value should only be set to <code>true</code> in abnormal 
-     * circumstances. 
+     * circumstances, such as HTTP protocol violations. 
      * 
      * @param b <code>true</code> if the connection must be closed, <code>false</code>
      * otherwise.
      */
     protected void setConnectionCloseForced(boolean b) {
+        if (LOG.isDebugEnabled()) {
+            LOG.debug("Force-close connection: " + b);
+        }
         this.connectionCloseForced = b;
     }
 
@@ -2053,7 +2056,7 @@
                     }
                 }
             } else {
-                if (isStrictMode() && LOG.isWarnEnabled()) {
+                if (LOG.isWarnEnabled()) {
                     LOG.warn("Transfer-Encoding is set but does not contain \"chunked\": "
                         + transferEncoding);
                 }
@@ -2066,6 +2069,7 @@
             int expectedLength = getResponseContentLength();
             if (expectedLength == -1) {
                 if (canResponseHaveBody(statusLine.getStatusCode())) {
+                    LOG.warn("Response content length is not known");
                     setConnectionCloseForced(true);
                     result = is;            
                 }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to