hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r757528 - in /httpcomponents/httpclient/trunk: RELEASE_NOTES.txt httpclient/src/main/java/org/apache/http/impl/conn/LoggingSessionInputBuffer.java
Date Mon, 23 Mar 2009 20:14:05 GMT
Author: olegk
Date: Mon Mar 23 20:14:05 2009
New Revision: 757528

URL: http://svn.apache.org/viewvc?rev=757528&view=rev
Log:
HTTPCLIENT-837: Fixed problem with the wire log skipping zero byte values if read one byte
at a time.

Contributed by Kirill Safonov <ksafonov at swiftteams.com>

Modified:
    httpcomponents/httpclient/trunk/RELEASE_NOTES.txt
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingSessionInputBuffer.java

Modified: httpcomponents/httpclient/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/RELEASE_NOTES.txt?rev=757528&r1=757527&r2=757528&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpclient/trunk/RELEASE_NOTES.txt Mon Mar 23 20:14:05 2009
@@ -1,6 +1,10 @@
 Changes since 4.0 beta 2
 -------------------
 
+* [HTTPCLIENT-837] Fixed problem with the wire log skipping zero byte values 
+  if read one byte at a time.
+  Contributed by Kirill Safonov <ksafonov at swiftteams.com>
+
 * [HTTPCLIENT-823] 'http.conn-manager.max-total' parameter can be adjusted 
   dynamically. However, the size of existing connection pools per route, 
   once allocated, will not be adjusted.

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingSessionInputBuffer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingSessionInputBuffer.java?rev=757528&r1=757527&r2=757528&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingSessionInputBuffer.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/LoggingSessionInputBuffer.java
Mon Mar 23 20:14:05 2009
@@ -78,7 +78,7 @@
 
     public int read() throws IOException {
         int l = this.in.read();
-        if (this.wire.enabled() && l > 0) { 
+        if (this.wire.enabled() && l != -1) { 
             this.wire.input(l);
         }
         return l;



Mime
View raw message