cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1384440 - /cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedInputBuffer.java
Date Thu, 13 Sep 2012 18:01:10 GMT
Author: dkulp
Date: Thu Sep 13 18:01:09 2012
New Revision: 1384440

URL: http://svn.apache.org/viewvc?rev=1384440&view=rev
Log:
Fix a problem with the direct reads if there is an offset on the incoming buffer

Modified:
    cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedInputBuffer.java

Modified: cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedInputBuffer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedInputBuffer.java?rev=1384440&r1=1384439&r2=1384440&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedInputBuffer.java
(original)
+++ cxf/trunk/rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedInputBuffer.java
Thu Sep 13 18:01:09 2012
@@ -255,7 +255,7 @@ public class SharedInputBuffer extends E
             if (!hasData()) {
                 this.waitingBuffer = ByteBuffer.wrap(b, off, len);
                 waitForData();
-                int i = waitingBuffer.position();
+                int i = waitingBuffer.position() - off;
                 waitingBuffer = null;
                 if (i > 0) {
                     //++waitCnt;



Mime
View raw message