Skip to content

Commit

Permalink
pipe: SERVFAIL when needed:
Browse files Browse the repository at this point in the history
 * 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
  • Loading branch information
pieterlexis committed Aug 16, 2016
1 parent f4b3a5f commit 6e0daab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/pipebackend/pipebackend.cc
Expand Up @@ -324,10 +324,14 @@ bool PipeBackend::get(DNSResourceRecord &r)
throw PDNSException("Coprocess backend sent incorrect response '"+line+"'");
}
}
catch (DBException &dbe) {
L<<Logger::Error<<kBackendId<<" "<<dbe.reason<<endl;
throw;
}
catch (PDNSException &pe) {
L<<Logger::Error<<kBackendId<<" "<<pe.reason<<endl;
cleanup();
return false;
throw;
}
return true;
}
Expand Down

0 comments on commit 6e0daab

Please sign in to comment.