Merge remote-tracking branch 'origin/topic/awelzel/2514-expire-all-timers-special-case'

* origin/topic/awelzel/2514-expire-all-timers-special-case:
  TimerMgr: Add back max_timer_expires=0 special case
  Add btest for expiration of all pending timers.
This commit is contained in:
Johanna Amann 2022-11-30 13:45:09 +00:00
commit f4527ee4db
7 changed files with 60 additions and 4 deletions

View file

@ -2116,8 +2116,8 @@ global discarder_check_icmp: function(p: pkt_hdr): bool;
## Zeek's watchdog interval.
const watchdog_interval = 10 sec &redef;
## The maximum number of timers to expire after processing each new
## packet. The value trades off spreading out the timer expiration load
## The maximum number of expired timers to process after processing each new
## packet. The value trades off spreading out the timer expiration load
## with possibly having to hold state longer. A value of 0 means
## "process all expired timers with each new packet".
const max_timer_expires = 300 &redef;