Index: webrtc/p2p/base/stunrequest.h |
diff --git a/webrtc/p2p/base/stunrequest.h b/webrtc/p2p/base/stunrequest.h |
index f6d216d1f714eca780f8d9b3574f616509bbc482..99dff14aee9bd7df00ffd4c8a8e0a383f40911de 100644 |
--- a/webrtc/p2p/base/stunrequest.h |
+++ b/webrtc/p2p/base/stunrequest.h |
@@ -23,6 +23,11 @@ class StunRequest; |
const int kAllRequests = 0; |
+// Total max timeouts: 39.75 seconds |
+// For years, this was 9.5 seconds, but for networks that experience moments of |
+// high RTT (such as 40s on 2G networks), this doesn't work well. |
+const int STUN_TOTAL_TIMEOUT = 39750; // milliseconds |
+ |
// Manages a set of STUN requests, sending and resending until we receive a |
// response or determine that the request has timed out. |
class StunRequestManager { |