Avoid half-open TCP connections

This commit is contained in:
Simon Ser 2021-02-18 16:16:04 +01:00
parent f0bd8e9214
commit 8ce6fc38f2
1 changed files with 0 additions and 3 deletions

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
}