forked from golang/net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netutil: streamline and simplify LimitListener tests
TestLimitListener had made a lot of assumptions about the kernel's willingness to queue unaccepted connections, and relied on arbitrary timeouts to shed load if the queue saturates. This change eliminates the arbitrary timeouts, replacing them with synchronization and cancellation and leaving only a couple of arbitrary sleeps (that can be exceeded by arbitrary amounts without causing the test to fail). Fixes golang/go#22926 Change-Id: Ibecff6254ec966e1cc98cf96c71493f18d3aaebe Reviewed-on: https://go-review.googlesource.com/c/net/+/372495 Trust: Bryan Mills <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
- Loading branch information
Bryan C. Mills
committed
Dec 16, 2021
1 parent
4ddde0e
commit fe4d628
Showing
4 changed files
with
88 additions
and
115 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters