]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/dnsdistdist/dnsdist-tcp-downstream.hh
dnsdist: Fix a crash in the Downstream TCP handler
[thirdparty/pdns.git] / pdns / dnsdistdist / dnsdist-tcp-downstream.hh
index a165dc18cb1282dcff0d5fc0c3e0e6d0c223040d..d2447e8b9cf8de4a88b7944cc760a263843af213 100644 (file)
@@ -119,7 +119,7 @@ public:
   virtual bool reachedMaxStreamID() const = 0;
   virtual bool reachedMaxConcurrentQueries() const = 0;
   virtual bool isIdle() const = 0;
-  virtual void release() = 0;
+  virtual void release(bool removeFromCache) = 0;
   virtual void stopIO()
   {
   }
@@ -256,7 +256,7 @@ public:
 
   void queueQuery(std::shared_ptr<TCPQuerySender>& sender, TCPQuery&& query) override;
   void handleTimeout(const struct timeval& now, bool write) override;
-  void release() override;
+  void release(bool removeFromCache) override;
 
   std::string toString() const override
   {