]> Cypherpunks repositories - gostls13.git/commit
net/http: correctly close fake net.Conns
authorDamien Neil <dneil@google.com>
Wed, 19 Nov 2025 19:25:49 +0000 (11:25 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 20 Nov 2025 18:14:05 +0000 (10:14 -0800)
commita49b0302d0e1d97b67a5f3f3beceafdcbc4c2ef0
tree6f6e16d0648f1fbaada0a601fa0eec7c25dcde21
parent32f5aadd2ffc60421c62b185fa7668012fb5e73e
net/http: correctly close fake net.Conns

Fix an inverted test in fakeNetConn.Close that caused closing
a connection to not break the other half of the connection.

Change-Id: I4e53f78402f8e503c749d57f294a4524abdccfb5
Reviewed-on: https://go-review.googlesource.com/c/go/+/722220
Reviewed-by: Nicholas Husin <nsh@golang.org>
Reviewed-by: Nicholas Husin <husin@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/net/http/netconn_test.go