mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
cluster/zeromq: Call DoTerminate() in destructor
Normal life-cycle is that Terminate() / DoTerminate() is called by zeek-setup code. If that doesn't happen, shutdown and join threads during destructor. try { } catch (...) suggested by Benjamin.
This commit is contained in:
parent
2c6d934ef4
commit
6008e67008
2 changed files with 16 additions and 0 deletions
|
@ -20,6 +20,11 @@ public:
|
|||
ZeroMQBackend(std::unique_ptr<EventSerializer> es, std::unique_ptr<LogSerializer> ls,
|
||||
std::unique_ptr<detail::EventHandlingStrategy> ehs);
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
~ZeroMQBackend();
|
||||
|
||||
/**
|
||||
* Spawns a thread running zmq_proxy() for the configured XPUB/XSUB listen
|
||||
* sockets. Only one node in a cluster should do this.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue