]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.16] net/http: prevent infinite wait during TestMissingStatusNoPanic
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Thu, 13 May 2021 15:41:45 +0000 (09:41 -0600)
committerDmitri Shuralyov <dmitshur@golang.org>
Wed, 2 Jun 2021 01:35:23 +0000 (01:35 +0000)
commit1613be84815e34b2c803694ac073b2ae67f18168
treec5b1332403e375984862a32331bf354553f09767
parent0410005dc458f23fb15f64354f9a24ca8f2fe044
[release-branch.go1.16] net/http: prevent infinite wait during TestMissingStatusNoPanic

If the client request never makes it to the server, the outstanding
accept is never broken. Change the test to always close the listening
socket when the client request completes.

Updates #45358

Change-Id: I744a91dfa11704e7e528163d7669c394e90456dc
Reviewed-on: https://go-review.googlesource.com/c/go/+/319275
Trust: Heschi Kreinick <heschi@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
(cherry picked from commit c0a7ecfae775a9d50d338e8123fac32a5d04308c)
Reviewed-on: https://go-review.googlesource.com/c/go/+/320190
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/net/http/transport_test.go