Consider switch from Connect to ConnectUsingDefaultNetwork when QuicStreamFactory creates sockets |
||
Issue descriptionPulling out from an internal discussion 65425099. As pauljensen@ suggested, we might consider switch from Connect() to ConnectUsingDefaultNetwork() when QuicStreamFactory creates sockets in default case(not during connection migration). So that GetBoundNetworkHandle could return a valid network handle and be stored in the session. This will also help us recognize whether the session is affected by a network change by comparing the bounded network handle and the affected network handle. Note this will only be supported in those platforms that support NetworkHandle, i.e., Android.
,
May 18 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/6ec9d23283acdcfd324420b296373a37343b9417 commit 6ec9d23283acdcfd324420b296373a37343b9417 Author: Zhongyi Shi <zhongyi@chromium.org> Date: Fri May 18 02:20:39 2018 Remove code to explicitly connect socket to a default network. Bug: 769858 Change-Id: I99174d3018ffa4ac0606a51a55f84018608278f9 Reviewed-on: https://chromium-review.googlesource.com/1060558 Reviewed-by: Ryan Hamilton <rch@chromium.org> Reviewed-by: Misha Efimov <mef@chromium.org> Commit-Queue: Zhongyi Shi <zhongyi@chromium.org> Cr-Commit-Position: refs/heads/master@{#559779} [modify] https://crrev.com/6ec9d23283acdcfd324420b296373a37343b9417/components/network_session_configurator/browser/network_session_configurator.cc [modify] https://crrev.com/6ec9d23283acdcfd324420b296373a37343b9417/components/network_session_configurator/browser/network_session_configurator_unittest.cc [modify] https://crrev.com/6ec9d23283acdcfd324420b296373a37343b9417/net/http/http_network_session.cc [modify] https://crrev.com/6ec9d23283acdcfd324420b296373a37343b9417/net/http/http_network_session.h [modify] https://crrev.com/6ec9d23283acdcfd324420b296373a37343b9417/net/http/http_proxy_client_socket_wrapper_unittest.cc [modify] https://crrev.com/6ec9d23283acdcfd324420b296373a37343b9417/net/quic/chromium/quic_stream_factory.cc [modify] https://crrev.com/6ec9d23283acdcfd324420b296373a37343b9417/net/quic/chromium/quic_stream_factory.h [modify] https://crrev.com/6ec9d23283acdcfd324420b296373a37343b9417/net/quic/chromium/quic_stream_factory_fuzzer.cc [modify] https://crrev.com/6ec9d23283acdcfd324420b296373a37343b9417/net/quic/chromium/quic_stream_factory_test.cc
,
Jul 10
We experimented this change in a independent experiment(no connection migration) and decided to hold it back as the platform expected session listen to/handle network signals if the socket is configured by calling ConnectUsingDefaultNetwork (platform will not kill the socket). This option should only apply when connection migration is turned on where by calling this method: platform hands the socket management over to QUIC Connection Migration. |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Sep 29 2017