Author: toad
Date: 2005-11-12 22:16:49 +0000 (Sat, 12 Nov 2005)
New Revision: 7541
Modified:
trunk/freenet/src/freenet/client/SplitFetcher.java
trunk/freenet/src/freenet/node/Version.java
Log:
178:
Fix Bad File Descriptor errors in splitfile download.
Modified: trunk/freenet/src/freenet/client/SplitFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/SplitFetcher.java 2005-11-12 22:11:25 UTC
(rev 7540)
+++ trunk/freenet/src/freenet/client/SplitFetcher.java 2005-11-12 22:16:49 UTC
(rev 7541)
@@ -195,7 +195,6 @@
long max = (finalLength < 0 ? 0 : (finalLength
- bytesWritten));
bytesWritten += s.writeDecodedDataTo(os, max);
}
- os.close();
} catch (IOException e) {
throw new FetchException(FetchException.BUCKET_ERROR,
e);
} finally {
@@ -203,6 +202,7 @@
try {
os.close();
} catch (IOException e) {
+ // If it fails to close it may return
corrupt data.
throw new
FetchException(FetchException.BUCKET_ERROR, e);
}
}
Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2005-11-12 22:11:25 UTC (rev
7540)
+++ trunk/freenet/src/freenet/node/Version.java 2005-11-12 22:16:49 UTC (rev
7541)
@@ -20,10 +20,10 @@
public static final String protocolVersion = "1.0";
/** The build number of the current revision */
- public static final int buildNumber = 177;
+ public static final int buildNumber = 178;
/** Oldest build of Fred we will talk to */
- public static final int lastGoodBuild = 177;
+ public static final int lastGoodBuild = 178;
/** The highest reported build of fred */
public static int highestSeenBuild = buildNumber;