Browse files

PacketHandler: Share UeberBackend with DNSSECKeeper

Reduces number of backend instances by 50%, very relevant for setups
that have backends with huge startup/runtime cost.
  • Loading branch information...
1 parent a5b29c7 commit 5a85152292ff94071bc013972f7b15a2ec4abf73 @zeha zeha committed Feb 15, 2015
Showing with 2 additions and 2 deletions.
  1. +1 −1 pdns/
  2. +1 −1 pdns/packethandler.hh
@@ -58,7 +58,7 @@ enum root_referral {
+PacketHandler::PacketHandler():B(s_programname), d_dk(&B)
@@ -111,7 +111,7 @@ private:
AuthLua* d_pdl;
UeberBackend B; // every thread an own instance
- DNSSECKeeper d_dk; // same, might even share B?
+ DNSSECKeeper d_dk; // B is shared with DNSSECKeeper
void emitNSEC3(DNSBackend& B, const NSEC3PARAMRecordContent& ns3prc, const SOAData& sd, const std::string& unhashed, const std::string& begin, const std::string& end, const std::string& toNSEC3, DNSPacket *r, int mode);
bool getNSEC3Hashes(bool narrow, DNSBackend* db, int id, const std::string& hashed, bool decrement, string& unhashed, string& before, string& after, int mode=0);

0 comments on commit 5a85152

Please sign in to comment.