2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-03 07:25:18 +00:00

[#3315] use internal IOService for hooks

This commit is contained in:
Razvan Becheriu
2024-03-27 23:38:26 +02:00
parent 4f935d2b86
commit 4398fb6c4a
58 changed files with 1079 additions and 343 deletions

View File

@@ -706,6 +706,7 @@ Dhcpv4Srv::~Dhcpv4Srv() {
}
LOG_ERROR(dhcp4_logger, DHCP4_SRV_UNLOAD_LIBRARIES_ERROR).arg(msg);
}
getIOService()->clearExternalIOServices();
io_service_->stop();
io_service_->restart();
try {
@@ -1132,6 +1133,7 @@ Dhcpv4Srv::run() {
#endif // ENABLE_AFL
try {
runOne();
getIOService()->pollExternalIOServices();
getIOService()->poll();
} catch (const std::exception& e) {
// General catch-all exception that are not caught by more specific