diff options
author | 2018-04-01 16:18:21 +0100 | |
---|---|---|
committer | 2018-04-01 16:18:21 +0100 | |
commit | 81348b420b0f312493ce889b40f65af65a0933d6 (patch) | |
tree | b91c332e464fa45f6bdd1c22866686680e8b0900 /plugin/forward/connect.go | |
parent | f5435b38841c5865606aca7f1258c46bbf0e6027 (diff) | |
download | coredns-81348b420b0f312493ce889b40f65af65a0933d6.tar.gz coredns-81348b420b0f312493ce889b40f65af65a0933d6.tar.zst coredns-81348b420b0f312493ce889b40f65af65a0933d6.zip |
plugin/forward: TCP conns can be closed (#1651)
* plugin/forward: TCP conns can be closed
Only when we read and get a io.EOF we know the conn is closed (for TCP).
If this is the case Dial (again) and retry. Note that this new
connection can also be closed by the upstream, we may want to add a
DialForceNew or something to get a new TCP connection..
Simular to #1624, *but* this is by (TCP) design. We also don't have to
wait for a timeout which makes it easier to reason about.
* Move to forward.go
* doesnt need changing
Diffstat (limited to 'plugin/forward/connect.go')
0 files changed, 0 insertions, 0 deletions