be more forgiving of slow connections (and fix my math in the comments)

This commit is contained in:
jrandom
2004-04-30 07:03:13 +00:00
committed by zzz
parent 0e4b80b002
commit 0a4ddedac9

View File

@ -398,12 +398,12 @@ class TCPConnection implements I2NPMessageReader.I2NPMessageEventListener {
}
/**
* if a slice takes 60 seconds, fuck 'im. slices at most send one I2NPMessage,
* which can be up to 128KB currently. Basically a minimum 50bps (slower for
* if a slice takes 2 minutes, fuck 'im. slices at most send one I2NPMessage,
* which can be up to around 32KB currently. Basically a minimum 273bps (slower for
* larger messages - perhaps this min-throughput should be implemented on the
* output stream as part of the throttling code? hmmm)
*/
private final static long MAX_SLICE_DURATION = 60*1000;
private final static long MAX_SLICE_DURATION = 120*1000;
/**
* Determine if the connection runner is hanging while running its slices. This can
* occur if there's a broken TCP connection that hasn't timed out yet (3 minutes later..)