1
1
Fork 0
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-04-28 08:55:00 +02: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

View File

@ -371,9 +371,6 @@ func duplexCopy(a, b io.ReadWriter) error {
_, err := io.Copy(b, a)
done <- err
}()
if err := <-done; err != nil {
return err
}
return <-done
}