Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing synchronous Connect* methods for BrokeredUdpClientSocket
This change modified Connect(), ConnectUsingNetwork(), and ConnectUsingDefaultNetwork() in BrokeredUdpClientSocket such that if a connection does not need to be brokered, these methods create and connect a socket. If a connection needs to be brokered, the methods now return net::ERR_NOT_IMPLEMENTED. There is currently one feature flag configuration where the network service can be enabled, but QUIC session creation can still be synchronous. When this configuration is enabled, session creation calls Connect() on windows instead of ConnectAsync(). Since the original implementation did nothing and returned net::OK this caused a crash. This change fixes that crash, and also causes brokered sockets to fail instead of completely crashing. (cherry picked from commit 9a4da84) Bug: 1448725 Change-Id: I4abf892331fbf63e3b9c5e4524af3987c5507d45 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4575243 Reviewed-by: Kenichi Ishibashi <bashi@chromium.org> Commit-Queue: Liza Burakova <liza@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1152675} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4589750 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Auto-Submit: Liza Burakova <liza@chromium.org> Cr-Commit-Position: refs/branch-heads/5790@{#421} Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
- Loading branch information
Liza Burakova
authored and
Chromium LUCI CQ
committed
Jun 6, 2023
1 parent
351e16a
commit 247aaa0
Showing
5 changed files
with
193 additions
and
16 deletions.
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
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
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