2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-05 00:15:17 +00:00

[#3315] addressed review comments

This commit is contained in:
Razvan Becheriu
2024-04-19 17:53:32 +03:00
parent 4398fb6c4a
commit cc104b47a8
42 changed files with 483 additions and 398 deletions

View File

@@ -7,6 +7,7 @@
#include <config.h>
#include <kea_version.h>
#include <asiolink/io_service_mgr.h>
#include <dhcp/dhcp4.h>
#include <dhcp/duid.h>
#include <dhcp/hwaddr.h>
@@ -706,7 +707,7 @@ Dhcpv4Srv::~Dhcpv4Srv() {
}
LOG_ERROR(dhcp4_logger, DHCP4_SRV_UNLOAD_LIBRARIES_ERROR).arg(msg);
}
getIOService()->clearExternalIOServices();
IOServiceMgr::instance().clearIOServices();
io_service_->stop();
io_service_->restart();
try {
@@ -1133,7 +1134,7 @@ Dhcpv4Srv::run() {
#endif // ENABLE_AFL
try {
runOne();
getIOService()->pollExternalIOServices();
IOServiceMgr::instance().pollIOServices();
getIOService()->poll();
} catch (const std::exception& e) {
// General catch-all exception that are not caught by more specific