From 70272cf0e5c78909991f93974aa77577a72c0d11 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 (cherry picked from commit 6e0daabf5d93bd240c4c3a5ba5afcb843686f3b8) --- 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 987a9d74b9..98ec55297e 100644 --- a/modules/pipebackend/pipebackend.cc +++ b/modules/pipebackend/pipebackend.cc @@ -340,10 +340,14 @@ bool PipeBackend::get(DNSResourceRecord &r) throw PDNSException("Coprocess backend sent incorrect response '"+line+"'"); } } + catch (DBException &dbe) { + L<