summaryrefslogtreecommitdiffstats
path: root/src/bin/dhcp6/dhcp6_srv.cc
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2020-05-06 21:40:08 +0200
committerRazvan Becheriu <razvan@isc.org>2020-05-07 18:49:15 +0200
commitc8b21c81a6b068c7f912f4a074003567b3192a57 (patch)
tree51ebb777412695efd12cf6700c7a235446628601 /src/bin/dhcp6/dhcp6_srv.cc
parent[#1173] Implemented the incompatibility case (diff)
downloadkea-c8b21c81a6b068c7f912f4a074003567b3192a57.tar.xz
kea-c8b21c81a6b068c7f912f4a074003567b3192a57.zip
[#1173] Addressed comments
Diffstat (limited to 'src/bin/dhcp6/dhcp6_srv.cc')
-rw-r--r--src/bin/dhcp6/dhcp6_srv.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc
index a59ec50d4f..18efcf8743 100644
--- a/src/bin/dhcp6/dhcp6_srv.cc
+++ b/src/bin/dhcp6/dhcp6_srv.cc
@@ -601,7 +601,9 @@ void Dhcpv6Srv::run_one() {
boost::shared_ptr<CallBack> call_back =
boost::make_shared<CallBack>(std::bind(&Dhcpv6Srv::processPacketAndSendResponseNoThrow,
this, query));
- MultiThreadingMgr::instance().getThreadPool().add(call_back);
+ if (!MultiThreadingMgr::instance().getThreadPool().add(call_back)) {
+ LOG_DEBUG(dhcp6_logger, DBG_DHCP6_BASIC, DHCP6_PACKET_QUEUE_FULL);
+ }
} else {
processPacketAndSendResponse(query);
}