Author: jleroux
Date: Fri Dec 17 12:28:27 2010
New Revision: 1050364
URL:
http://svn.apache.org/viewvc?rev=1050364&view=revLog:
Temporary(?) fix for a blocking deadlock issue, see
https://issues.apache.org/jira/browse/OFBIZ-4065 - OFBIZ-4065
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java?rev=1050364&r1=1050363&r2=1050364&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilIO.java Fri Dec 17 12:28:27 2010
@@ -107,6 +107,7 @@ public final class UtilIO {
CharBuffer buffer = CharBuffer.allocate(4096);
int r;
while ((r = reader.read(buffer)) != -1) {
+ if (r == 0) break;
buffer.rewind();
out.append(buffer);
buffer.flip();