mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 13:08:20 +00:00
Exec: fix reader cleanup when using read_files
Wen using read_files, the Exec framework called Input::remove on the wrong input stream: it always got called on the input stream of the execution, not on the input stream of the current file that was being read. This lead to threads never being closed and file handles being kept open until Bro is closed. This means that before this patch, every time ActiveHTTP is used, a thread stays around and several file handles are used.
This commit is contained in:
parent
e7cf52e33c
commit
e859130369
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ event Input::end_of_data(orig_name: string, source:string)
|
|||
if ( track_file !in result$files )
|
||||
result$files[track_file] = vector();
|
||||
|
||||
Input::remove(name);
|
||||
Input::remove(orig_name);
|
||||
|
||||
if ( name !in pending_files )
|
||||
delete pending_commands[name];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue