-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HttpStreamPool: Fix NetworkContextTest.Preconnect* tests
When the HappyEyeballsV3 feature is enabled, use HttpStreamPool's GetInfoAsValue() to inspect the current state of the pool. This fixes NetworkContextTest.Preconnect* tests. The NetworkContextTest.PreconnectMax test requests 76 sockets, which exceeds the maximum number of sockets per group. Change the CHECK in HttpStreamPool::Preconnect() to std::min() to handle such cases. Bug: 346835898 Change-Id: I3993c9ea573b5ea102525a9fffd55d7e46d7b866 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5826436 Commit-Queue: Kenichi Ishibashi <bashi@chromium.org> Reviewed-by: Adam Rice <ricea@chromium.org> Cr-Commit-Position: refs/heads/main@{#1349943}
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
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
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