Author: nextgens
Date: 2008-08-30 11:29:18 +0000 (Sat, 30 Aug 2008)
New Revision: 22244

Modified:
   trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
TempBucket: maybe fix the so-called bucket problem.

Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-30 
09:26:18 UTC (rev 22243)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-08-30 
11:29:18 UTC (rev 22244)
@@ -291,6 +291,13 @@
                        }

                        @Override
+                       public int available() throws IOException {
+                               synchronized(TempBucket.this) {
+                                       return currentIS.available();
+                               }
+                       }
+                       
+                       @Override
                        public boolean markSupported() {
                                return false;
                        }


Reply via email to