From 6e0daabf5d93bd240c4c3a5ba5afcb843686f3b8 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Tue, 16 Aug 2016 15:51:47 +0200 Subject: [PATCH] pipe: SERVFAIL when needed: * SERVFAIL, but don't restart the coprocess if we get a FAIL. * SERVFAIL if the coprocess sends something we don't understand. * In this case, restart the coprocess. Closes #4308 --- modules/pipebackend/pipebackend.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/pipebackend/pipebackend.cc b/modules/pipebackend/pipebackend.cc index 1154bba77a..b825359a70 100644 --- a/modules/pipebackend/pipebackend.cc +++ b/modules/pipebackend/pipebackend.cc @@ -324,10 +324,14 @@ bool PipeBackend::get(DNSResourceRecord &r) throw PDNSException("Coprocess backend sent incorrect response '"+line+"'"); } } + catch (DBException &dbe) { + L<