I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 0a4ddeda authored by jrandom's avatar jrandom Committed by zzz
Browse files

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

parent 0e4b80b0
No related branches found
No related tags found
No related merge requests found
...@@ -398,12 +398,12 @@ class TCPConnection implements I2NPMessageReader.I2NPMessageEventListener { ...@@ -398,12 +398,12 @@ class TCPConnection implements I2NPMessageReader.I2NPMessageEventListener {
} }
/** /**
* if a slice takes 60 seconds, fuck 'im. slices at most send one I2NPMessage, * if a slice takes 2 minutes, fuck 'im. slices at most send one I2NPMessage,
* which can be up to 128KB currently. Basically a minimum 50bps (slower for * 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 * larger messages - perhaps this min-throughput should be implemented on the
* output stream as part of the throttling code? hmmm) * 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 * 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..) * occur if there's a broken TCP connection that hasn't timed out yet (3 minutes later..)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment