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

[#1173] Addressed comments

This commit is contained in:
Francis Dupont
2020-05-06 21:40:08 +02:00
committed by Razvan Becheriu
parent 99ad85b77b
commit c8b21c81a6
14 changed files with 84 additions and 44 deletions

View File

@@ -1020,7 +1020,9 @@ Dhcpv4Srv::run_one() {
boost::shared_ptr<CallBack> call_back =
boost::make_shared<CallBack>(std::bind(&Dhcpv4Srv::processPacketAndSendResponseNoThrow,
this, query));
MultiThreadingMgr::instance().getThreadPool().add(call_back);
if (!MultiThreadingMgr::instance().getThreadPool().add(call_back)) {
LOG_DEBUG(dhcp4_logger, DBG_DHCP4_BASIC, DHCP4_PACKET_QUEUE_FULL);
}
} else {
processPacketAndSendResponse(query);
}