Enqueueing alerts as soon as they are detected, instead of using 2-steps (#3038)

This commit is contained in:
Alfredo Cardigliano 2019-11-05 11:04:44 +01:00
parent c4ad235bf8
commit 280213e148
6 changed files with 44 additions and 55 deletions

View file

@ -172,6 +172,8 @@ function alerts_api.checkPendingStoreAlerts(deadline)
alert.srv2cli.bytes, alert.srv2cli.packets)
if ret and ret.rowid and ret.rowid > 0 then
-- pushFlowAlertNotification should be probably moved earlier to
-- flow.lua:triggerFlowAlert for consistency with the host alerts
pushFlowAlertNotification(ifid, ret.rowid)
end
end