mirror of
https://github.com/golang/net.git
synced 2026-03-31 02:17:08 +09:00
This CL is the x/net counterpart to CL 755320. This test contains a race condition in the server handler: inHandler <- streamID <-leaveHandler We assume that all requests queue reading from leaveHandler in order, but it is possible for the second request (stream id 3) to arrive at leaveHandler before the first (stream id 1). We could fix the race with a judicious synctest.Wait, but rewrite the test to use serverHandlerCall to manipulate server handlers, which permits us to precisely pick which request to unblock. Fixes #69670 Change-Id: I9507d1dba07f7d62bcdc6c9bb67c47466a6a6964 Reviewed-on: https://go-review.googlesource.com/c/net/+/755081 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Nicholas Husin <husin@google.com> Reviewed-by: Nicholas Husin <nsh@golang.org> Reviewed-by: Nicholas Husin <husin@google.com>