]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: prevent infinite wait during TestMissingStatusNoPanic
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Thu, 13 May 2021 15:41:45 +0000 (09:41 -0600)
committerDamien Neil <dneil@google.com>
Fri, 14 May 2021 16:42:01 +0000 (16:42 +0000)
commit3d324f127dbb916f38d7476e9c4ff106e5d54f99
treea72b41d9dfa6661a64ed1686f700b2e59519b57c
parent0eb38f2b164ec5b0094c5895cfe1b3a40c183d50
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>
src/net/http/transport_test.go