mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Increase Wi-Fi connection timeout to 700ms.
PiperOrigin-RevId: 865597140
This commit is contained in:
committed by
Copybara-Service
parent
26f03a641c
commit
fc510085e6
@@ -56,7 +56,10 @@ using ::winrt::Windows::Devices::WiFiDirect::
|
||||
using ::winrt::Windows::Devices::WiFiDirect::WiFiDirectConnectionRequest;
|
||||
using ::winrt::Windows::Security::Credentials::PasswordCredential;
|
||||
|
||||
constexpr absl::Duration kConnectTimeout = absl::Milliseconds(500);
|
||||
// Wifi connection metrics show P90 latency is just under 600ms.
|
||||
// Assuming the hotspot connection latency is similar to the wifi
|
||||
// connection latency.
|
||||
constexpr absl::Duration kConnectTimeout = absl::Milliseconds(700);
|
||||
} // namespace
|
||||
|
||||
WifiHotspotMedium::~WifiHotspotMedium() {
|
||||
|
||||
@@ -80,7 +80,9 @@ constexpr absl::string_view kMdnsDeviceSelectorFormat =
|
||||
constexpr absl::string_view kDisableMdnsAdvertisingRegistryValue =
|
||||
"disable_mdns_advertising";
|
||||
|
||||
constexpr absl::Duration kConnectTimeout = absl::Milliseconds(500);
|
||||
// From metrics, P90 wifi connection latency is just under 600ms.
|
||||
// Set to 700ms to be slightly more generous than the P90.
|
||||
constexpr absl::Duration kConnectTimeout = absl::Milliseconds(700);
|
||||
|
||||
bool IsSelfInstance(IMapView<winrt::hstring, IInspectable> properties,
|
||||
absl::string_view self_instance_name) {
|
||||
|
||||
Reference in New Issue
Block a user