forked from I2P_Developers/i2p.i2p
2009-04-27 sponge
* more BOB fixes, complete with warnings when things go wrong, and success messages when things turn around and go right. Terminates early so that applications wait no more than 10 seconds or so. * Reversed a few earlier patches that caused some odd behavior. * Changed some core println()'s to debugging messages.
This commit is contained in:
@ -2,8 +2,6 @@ package net.i2p.client.streaming;
|
||||
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.i2p.I2PAppContext;
|
||||
import net.i2p.util.Log;
|
||||
@ -126,7 +124,7 @@ class ConnectionHandler {
|
||||
if (timeoutMs <= 0) {
|
||||
try {
|
||||
syn = _synQueue.take(); // waits forever
|
||||
} catch (InterruptedException ie) { break;}
|
||||
} catch (InterruptedException ie) { } // { break;}
|
||||
} else {
|
||||
long remaining = expiration - _context.clock().now();
|
||||
// (dont think this applies anymore for LinkedBlockingQueue)
|
||||
|
@ -213,7 +213,7 @@ public class PacketLocal extends Packet implements MessageOutputStream.WriteStat
|
||||
timeRemaining = 10*1000;
|
||||
wait(timeRemaining);
|
||||
}
|
||||
} catch (InterruptedException ie) { break; }
|
||||
} catch (InterruptedException ie) { }//{ break; }
|
||||
}
|
||||
if (!writeSuccessful())
|
||||
releasePayload();
|
||||
|
Reference in New Issue
Block a user