mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
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
This commit is contained in:
committed by
Miek Gieben
parent
ebe6a41e50
commit
1ef24a8813
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user