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:
parent
ebe6a41e50
commit
1ef24a8813
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue