Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Unified Diff: webrtc/p2p/base/transport.h

Issue 1979573003: Revert of Increase the stun ping interval. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/transport.h
diff --git a/webrtc/p2p/base/transport.h b/webrtc/p2p/base/transport.h
index 68f178a40af31792d2d441e751db6b9c8432e6bb..e31d37a6f6a81a3dd1ee9fee329716235fd2a3ad 100644
--- a/webrtc/p2p/base/transport.h
+++ b/webrtc/p2p/base/transport.h
@@ -154,22 +154,23 @@
// is writable yet.
bool prioritize_most_likely_candidate_pairs = false;
- // Writable connections are pinged at a slower rate.
- int writable_connection_ping_interval = -1;
+ // If the current best connection is both writable and receiving,
+ // then we will also try hard to make sure it is pinged at this rate
+ // (Default value is a little less than 2 * STRONG_PING_INTERVAL).
+ int max_strong_interval = -1;
IceConfig() {}
IceConfig(int receiving_timeout_ms,
int backup_connection_ping_interval,
bool gather_continually,
bool prioritize_most_likely_candidate_pairs,
- int writable_connection_ping_interval_ms)
+ int max_strong_interval_ms)
: receiving_timeout(receiving_timeout_ms),
backup_connection_ping_interval(backup_connection_ping_interval),
gather_continually(gather_continually),
prioritize_most_likely_candidate_pairs(
prioritize_most_likely_candidate_pairs),
- writable_connection_ping_interval(
- writable_connection_ping_interval_ms) {}
+ max_strong_interval(max_strong_interval_ms) {}
};
bool BadTransportDescription(const std::string& desc, std::string* err_desc);
« no previous file with comments | « webrtc/p2p/base/p2ptransportchannel_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698