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:
jrandom
2004-11-02 11:57:07 +00:00
committed by zzz
parent 1107e50108
commit 6ef22166f9
7 changed files with 108 additions and 73 deletions

View File

@@ -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);