forked from I2P_Developers/i2p.i2p
2004-11-02 jrandom
* Fix for a long standing synchronization bug in the JobQueue (and added
some kooky flags to make sure it stays dead)
* Update the ministreaming lib to force mode=guaranteed if the default
lib is used, and mode=best_effort for all other libs.
This commit is contained in:
@@ -153,6 +153,8 @@ public class I2NPMessageReader {
|
||||
return 0;
|
||||
} else {
|
||||
boolean shouldLag = _context.random().nextInt(1000) > size;
|
||||
if (!shouldLag) return 0;
|
||||
|
||||
long readLag = getReadLag();
|
||||
if (readLag > 0) {
|
||||
long lag = _context.random().nextLong(readLag);
|
||||
|
||||
Reference in New Issue
Block a user