mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Clear sessions when session manager is done
It looks like there is no reason to keep sessions in the map beyond the point where the session manager is considered done. This hopefully simplifies the shutdown control flow a tiny bit.
This commit is contained in:
parent
3b478ddc0a
commit
013dc2010f
3 changed files with 3 additions and 7 deletions
|
@ -88,7 +88,7 @@ void fuzzer_cleanup_one_input() {
|
|||
zeek::event_mgr.Drain();
|
||||
zeek::session_mgr->Drain();
|
||||
zeek::event_mgr.Drain();
|
||||
zeek::session_mgr->Clear();
|
||||
zeek::session_mgr->Done();
|
||||
run_state::terminating = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -82,12 +82,9 @@ Manager::Manager() {
|
|||
});
|
||||
}
|
||||
|
||||
Manager::~Manager() {
|
||||
Clear();
|
||||
delete stats;
|
||||
}
|
||||
Manager::~Manager() { delete stats; }
|
||||
|
||||
void Manager::Done() {}
|
||||
void Manager::Done() { Clear(); }
|
||||
|
||||
Connection* Manager::FindConnection(Val* v) {
|
||||
zeek::detail::ConnKey conn_key(v);
|
||||
|
|
|
@ -391,7 +391,6 @@ static void terminate_zeek() {
|
|||
|
||||
event_mgr.Drain();
|
||||
|
||||
session_mgr->Clear();
|
||||
plugin_mgr->FinishPlugins();
|
||||
|
||||
finish_script_execution();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue