Skip to content

Commit

Permalink
Increase cert download attempts during discovery to 12.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 696633396
  • Loading branch information
ftsui authored and copybara-github committed Nov 14, 2024
1 parent ec5dbe5 commit a66c875
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sharing/nearby_sharing_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a66c875

Please sign in to comment.