mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Increase cert download attempts during discovery to 12.
PiperOrigin-RevId: 696651808
This commit is contained in:
committed by
Copybara-Service
parent
ec5dbe56f1
commit
7d9f66198b
@@ -137,7 +137,9 @@ constexpr absl::Duration kFastInitiationScannerCooldown = absl::Seconds(8);
|
||||
|
||||
// The maximum number of certificate downloads that can be performed during a
|
||||
// discovery session.
|
||||
constexpr size_t kMaxCertificateDownloadsDuringDiscovery = 3u;
|
||||
// Assuming a 2min discovery session and 10s download interval.
|
||||
// This allows us to try to re-download certificates for the entire session.
|
||||
constexpr size_t kMaxCertificateDownloadsDuringDiscovery = 12u;
|
||||
// The time between certificate downloads during a discovery session. The
|
||||
// download is only attempted if there are discovered, contact-based
|
||||
// advertisements that cannot decrypt any currently stored public certificates.
|
||||
|
||||
Reference in New Issue
Block a user