]> Cypherpunks repositories - gostls13.git/commit
net: report timeouts more aggressively in Accept in the fake implementation
authorBryan C. Mills <bcmills@google.com>
Mon, 22 Jan 2024 23:02:38 +0000 (18:02 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 23 Jan 2024 17:05:09 +0000 (17:05 +0000)
commitf75e1c1460a009ee3feb9fbd34fc17b957644dc5
tree8d9208caf08f91ae8206c12c041cdf1dc5a5deb0
parentd0dc93c8e1a5be4e0a44b7f8ecb0cb1417de50ce
net: report timeouts more aggressively in Accept in the fake implementation

This ensures that if the listener has already timed out when Accept
is called, Accept always returns an error instead of instantaneously
accepting a connection that was already pending.

For #17948.

Change-Id: Iabef7121590df3dcc2fe428429d7c2bc2bcb6cd5
Reviewed-on: https://go-review.googlesource.com/c/go/+/557438
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/net/net_fake.go