-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write the dns message response body when it is not a ServerFailure (#984
) Coredns assumes ServeDNS has written the response body unless the returned code indicates it hasn't been written as determined by ClientWrite (which is only the codes RcodeServerFailure, RcodeRefused, RcodeFormatError and RcodeNotImplemented), in which case it writes the response. If there's no next plugin, it simply returns the code but if it isn't one of the ClientWrite codes, then no response is written. If no response,client will try to resend dns request multiple times, which causes seconds delay. Fixes #859 Signed-off-by: blue-troy <[email protected]> Co-authored-by: blue-troy <[email protected]>
- Loading branch information
1 parent
dff35d1
commit f1f06c6
Showing
2 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters