Kea does not reload hooks correctly on receipt of HUP signal
As reported by: Dave Cole Software Version: kea-1.3.0, kea-1.4.0 OS: Debian Stretch
Using kill -HUP on the Kea server only correctly reloads hooks if the server has not served any DHCP requests.
If you serve any requests then HUP the server the behaviour is incorrect (and subtly different for 1.3.0 and 1.4.0). In both instances the first HUP after serving requests will load a new instance of the hooks without calling the unload hook. In both instances a subsequent HUP will call the unload hook and then load hook.
Version 1.3.0 and 1.4.0 behave differently during server shutdown. Version 1.3.0 performs the correct number (2) of unloads, but 1.4.0 only calls unload once.
In summary the sequence for 1.3.0 looks like: load, dhcp, SIGHUP, load, SIGHUP, unload, load, SIGINT, unload, unload, exit.
For 1.4.0 the sequence looks like: load, dhcp, SIGHUP, load, SIGHUP, unload, load, SIGINT, unload, exit.