manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1410546 - /manifoldcf/branches/CONNECTORS-120/framework/core/src/main/java/org/apache/manifoldcf/core/common/XThreadInputStream.java
Date Fri, 16 Nov 2012 19:36:46 GMT
Author: kwright
Date: Fri Nov 16 19:36:45 2012
New Revision: 1410546

URL: http://svn.apache.org/viewvc?rev=1410546&view=rev
Log:
Fixed cross-stream input stream problems.

Modified:
    manifoldcf/branches/CONNECTORS-120/framework/core/src/main/java/org/apache/manifoldcf/core/common/XThreadInputStream.java

Modified: manifoldcf/branches/CONNECTORS-120/framework/core/src/main/java/org/apache/manifoldcf/core/common/XThreadInputStream.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-120/framework/core/src/main/java/org/apache/manifoldcf/core/common/XThreadInputStream.java?rev=1410546&r1=1410545&r2=1410546&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-120/framework/core/src/main/java/org/apache/manifoldcf/core/common/XThreadInputStream.java
(original)
+++ manifoldcf/branches/CONNECTORS-120/framework/core/src/main/java/org/apache/manifoldcf/core/common/XThreadInputStream.java
Fri Nov 16 19:36:45 2012
@@ -137,7 +137,7 @@ public class XThreadInputStream extends 
       while (true)
       {
         if (len == 0)
-          return 0;
+          return totalAmt;
         int copyLen;
         synchronized (this)
         {
@@ -163,6 +163,7 @@ public class XThreadInputStream extends 
         }
         System.arraycopy(buffer, startPoint, b, off, copyLen);
         totalAmt += copyLen;
+        off += copyLen;
         len -= copyLen;
         synchronized (this)
         {



Mime
View raw message