Changeset 893d1bb


Ignore:
Timestamp:
Nov 5, 2014 4:59:19 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f524351
Parents:
945988d
Message:

Job Queue: Only drop lookup jobs if lagged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/JobQueue.java

    r945988d r893d1bb  
    287287            // This is pretty lame, there's actually a ton of different jobs we
    288288            // could drop, but is it worth making a list?
    289             if (cls == HandleFloodfillDatabaseLookupMessageJob.class)
    290                 return true;
    291 
     289            if (cls == HandleFloodfillDatabaseLookupMessageJob.class) {
     290                 JobTiming jt = job.getTiming();
     291                 if (jt != null) {
     292                     long lag =  _context.clock().now() - jt.getStartAfter();
     293                     if (lag > 2*1000L)
     294                         return true;
     295                }
     296            }
    292297        }
    293298        return false;
Note: See TracChangeset for help on using the changeset viewer.