From 1ef24a881391047d55628fc32b058a60552c9ede Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Mon, 12 Aug 2019 21:24:16 +0300 Subject: [PATCH] Fix handling truncated responses in forward (#3110) * Fix handling truncated responses in forward * Removed error check after proxy.Connect See https://github.com/coredns/coredns/pull/3110/files#r312942826 --- plugin/forward/forward.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugin/forward/forward.go b/plugin/forward/forward.go index da2e175fe..9d37780da 100644 --- a/plugin/forward/forward.go +++ b/plugin/forward/forward.go @@ -109,9 +109,6 @@ func (f *Forward) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg opts := f.opts for { ret, err = proxy.Connect(ctx, state, opts) - if err == nil { - break - } if err == ErrCachedClosed { // Remote side closed conn, can only happen with TCP. continue }