• Miek Gieben's avatar
    plugin/forward: TCP conns can be closed (#1651) · 81348b42
    Miek Gieben authored
    * 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
    81348b42
forward.go 4.35 KB