]> Cypherpunks repositories - gostls13.git/commit
net/http: drop client address comparison in TestTransportRemovesDeadIdleConnections
authorBryan C. Mills <bcmills@google.com>
Tue, 4 Apr 2023 18:49:23 +0000 (14:49 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 4 Apr 2023 23:16:55 +0000 (23:16 +0000)
commita8ca653892a470daf065b7669061d6ce1b4ff2e9
tree1754527943c020960b600f1097a88ce5e003c9fc
parent449e69f1597273f13db684f4a629f3e43beb2987
net/http: drop client address comparison in TestTransportRemovesDeadIdleConnections

Since the first client connection is explicitly closed before making
the second request, we cannot in general assume that the second
request uses a different port (it is equally valid to open the new
connection on the same port as the old one that was closed).

Fixes #59438.

Change-Id: I52d5fe493bd8b1b49270d3996d2019d38d375ce9
Reviewed-on: https://go-review.googlesource.com/c/go/+/482175
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/net/http/transport_test.go