2007-06-27 jrandom

* fix for a streaming lib bug that could leave a thread waiting
      indefinitely (thanks Complication!)
This commit is contained in:
jrandom
2007-06-28 01:51:16 +00:00
committed by zzz
parent 30c99e630b
commit 71aaf03d09
3 changed files with 16 additions and 6 deletions

View File

@ -29,9 +29,15 @@ public class I2PSocketFull implements I2PSocket {
if (c == null) return;
if (c.getIsConnected()) {
OutputStream out = c.getOutputStream();
if (out != null)
out.close();
c.disconnect(true);
if (out != null) {
try {
out.close();
} catch (IOException ioe) {
// ignore any write error, as we want to keep on and kill the
// con (thanks Complication!)
}
}
c.disconnect(true);
} else {
//throw new IOException("Not connected");
}

View File

@ -1,4 +1,8 @@
$Id: history.txt,v 1.568 2007-05-06 15:02:04 complication Exp $
$Id: history.txt,v 1.569 2007-06-16 18:15:49 complication Exp $
2007-06-27 jrandom
* fix for a streaming lib bug that could leave a thread waiting
indefinitely (thanks Complication!)
2007-06-16 Complication
* First pass on EepGet and ReseedHandler improvements,

View File

@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
*
*/
public class RouterVersion {
public final static String ID = "$Revision: 1.503 $ $Date: 2007-05-06 14:52:43 $";
public final static String ID = "$Revision: 1.504 $ $Date: 2007-06-16 18:15:51 $";
public final static String VERSION = "0.6.1.28";
public final static long BUILD = 6;
public final static long BUILD = 7;
public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION + "-" + BUILD);
System.out.println("Router ID: " + RouterVersion.ID);