mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
FileAnalysis: add more params to some events.
This commit is contained in:
parent
2747e839fb
commit
e2fbee9054
8 changed files with 113 additions and 48 deletions
|
@ -147,17 +147,6 @@ void Manager::SetSize(uint64 size, File* file)
|
|||
RemoveFile(file->GetUnique());
|
||||
}
|
||||
|
||||
void Manager::FileEvent(EventHandlerPtr h, File* file)
|
||||
{
|
||||
if ( ! h ) return;
|
||||
if ( IsIgnored(file->GetUnique()) ) return;
|
||||
|
||||
val_list * vl = new val_list();
|
||||
vl->append(file->GetVal()->Ref());
|
||||
|
||||
mgr.QueueEvent(h, vl);
|
||||
}
|
||||
|
||||
bool Manager::PostponeTimeout(const FileID& file_id) const
|
||||
{
|
||||
File* file = Lookup(file_id);
|
||||
|
@ -235,8 +224,7 @@ void Manager::Timeout(const FileID& file_id, bool is_terminating)
|
|||
|
||||
file->postpone_timeout = false;
|
||||
|
||||
FileEvent(file_timeout, file);
|
||||
mgr.Drain(); // need immediate feedback about whether to postpone
|
||||
file->FileEvent(file_timeout);
|
||||
|
||||
if ( file->postpone_timeout && ! is_terminating )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue