mirror of
https://git.sr.ht/~emersion/tlstunnel
synced 2024-11-19 15:53:50 +01:00
Avoid half-open TCP connections
This commit is contained in:
parent
f0bd8e9214
commit
8ce6fc38f2
@ -371,9 +371,6 @@ func duplexCopy(a, b io.ReadWriter) error {
|
|||||||
_, err := io.Copy(b, a)
|
_, err := io.Copy(b, a)
|
||||||
done <- err
|
done <- err
|
||||||
}()
|
}()
|
||||||
if err := <-done; err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return <-done
|
return <-done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user