[kea-dev] Is it possible for hooks to hande server shutdown?
davecole at nbnco.com.au
Sun Oct 1 23:23:53 UTC 2017
I have been working on a hook to publish events to a Kafka server. The Kafka library creates a thread for communication with the server, which creates a problem when the kea server is stopped as there might still be messages that have not been delivered to the Kafka server.
There is a simple way to monitor the Kafka thread. Is there any way for the hook to detect server shutdown and delay process termination until delivery to Kafka has completed?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the kea-dev