hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r659957 - in /httpcomponents/httpcore/trunk: RELEASE_NOTES.txt module-nio/src/main/java/org/apache/http/nio/util/SharedInputBuffer.java
Date Sun, 25 May 2008 11:00:29 GMT
Author: olegk
Date: Sun May 25 04:00:28 2008
New Revision: 659957

URL: http://svn.apache.org/viewvc?rev=659957&view=rev
Log:
Fixed bug in the SharedInputBuffer that caused input events to be incorrectly suspended.
Contributed by Asankha C. Perera <asankha at wso2.com>

Modified:
    httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
    httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedInputBuffer.java

Modified: httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/RELEASE_NOTES.txt?rev=659957&r1=659956&r2=659957&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpcore/trunk/RELEASE_NOTES.txt Sun May 25 04:00:28 2008
@@ -1,5 +1,8 @@
 Changes since 4.0 Beta 1
 -------------------
+* Fixed bug in SharedInputBuffer that caused input events to be
+  incorrectly suspended.
+  Contributed by Asankha C. Perera <asankha at wso2.com>
 
 * [HTTPCORE-150] Entity implementation that serializes a Java object
   Contributed by Andrea Selva <selva.andrea at gmail.com>

Modified: httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedInputBuffer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedInputBuffer.java?rev=659957&r1=659956&r2=659957&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedInputBuffer.java
(original)
+++ httpcomponents/httpcore/trunk/module-nio/src/main/java/org/apache/http/nio/util/SharedInputBuffer.java
Sun May 25 04:00:28 2008
@@ -77,7 +77,7 @@
             if (bytesRead == -1 || decoder.isCompleted()) {
                 this.endOfStream = true;
             }
-            if (totalRead > 0) {
+            if (!this.buffer.hasRemaining()) {
                 this.ioctrl.suspendInput();
             }
             this.mutex.notifyAll();



Mime
View raw message