mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00

This is just a small optimization on top of what is there. Add state to Func for tracking if any enabled bodies exist which allows us to propagate it up to the EventHandler::bool() operator. In turn, when all bodies of an event's Func have been runtime disabled, the event itself will not be invoked anymore. Experiments have shown that this allows runtime toggling of new_event() without performance impact when disabled. This could enable use-cases where new_packet() handlers are enabled for a split second once in a while to either dump or sample raw packet data at runtime.
7 lines
374 B
Text
7 lines
374 B
Text
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
|
sender added peer: endpoint=127.0.0.1 msg=handshake successful
|
|
sender got pong: my-message, 1
|
|
sender got pong: my-message, 2
|
|
sender got pong: my-message, 3
|
|
sender got pong: my-message, 4
|
|
sender lost peer: endpoint=127.0.0.1 msg=lost connection to remote peer
|