1
1
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:
Simon Ser 2021-02-18 16:16:04 +01:00
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
} }