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
|
opts := f.opts
|
||||||
for {
|
for {
|
||||||
ret, err = proxy.Connect(ctx, state, opts)
|
ret, err = proxy.Connect(ctx, state, opts)
|
||||||
if err == nil {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
if err == ErrCachedClosed { // Remote side closed conn, can only happen with TCP.
|
if err == ErrCachedClosed { // Remote side closed conn, can only happen with TCP.
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user