hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r919516 - /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java
Date Fri, 05 Mar 2010 17:31:29 GMT
Author: asankha
Date: Fri Mar  5 17:31:28 2010
New Revision: 919516

URL: http://svn.apache.org/viewvc?rev=919516&view=rev
Log:
fix HTTPCORE-220

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java?rev=919516&r1=919515&r2=919516&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/codecs/IdentityDecoder.java
Fri Mar  5 17:31:28 2010
@@ -116,6 +116,9 @@
                                           "].  Please grow the file before writing.");
                 
                 bytesRead = dst.transferFrom(this.channel, position, count);
+                if (bytesRead == 0) {
+                    bytesRead = buffer.fill(this.channel);
+                }
             } else {
                 bytesRead = -1;
             }



Mime
View raw message