From: Razvan Becheriu Date: Fri, 14 Mar 2025 08:01:44 +0000 (+0200) Subject: [#3648] drop packet on db race X-Git-Tag: Kea-2.7.7~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae7cddb5d879644b6d27e8c776e6ab3f06a8c5cf;p=thirdparty%2Fkea.git [#3648] drop packet on db race --- diff --git a/src/lib/dhcpsrv/alloc_engine.cc b/src/lib/dhcpsrv/alloc_engine.cc index 67c85f1ce9..1294e999e4 100644 --- a/src/lib/dhcpsrv/alloc_engine.cc +++ b/src/lib/dhcpsrv/alloc_engine.cc @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -629,6 +630,9 @@ AllocEngine::allocateLeases6(ClientContext6& ctx) { return (leases); } + } catch (const NoSuchLease&) { + throw; + } catch (const isc::Exception& e) { // Some other error, return an empty lease. @@ -2182,6 +2186,9 @@ AllocEngine::renewLeases6(ClientContext6& ctx) { return (leases); + } catch (const NoSuchLease&) { + throw; + } catch (const isc::Exception& e) { // Some other error, return an empty lease. @@ -3746,6 +3753,9 @@ AllocEngine::allocateLease4(ClientContext4& ctx) { ctx.new_lease_ = requestLease4(ctx); } + } catch (const NoSuchLease&) { + throw; + } catch (const isc::Exception& e) { // Some other error, return an empty lease. LOG_ERROR(alloc_engine_logger, ALLOC_ENGINE_V4_ALLOC_ERROR)