Index: webrtc/p2p/base/port.cc |
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc |
index 16a80194358a93d47bb7466a7f57eb57058d4af4..385022c11aa98fd7be768c672617c5a900d5b5de 100644 |
--- a/webrtc/p2p/base/port.cc |
+++ b/webrtc/p2p/base/port.cc |
@@ -74,8 +74,9 @@ inline int ConservativeRTTEstimate(int rtt) { |
// Weighting of the old rtt value to new data. |
const int RTT_RATIO = 3; // 3 : 1 |
-// The delay before we begin checking if this port is useless. |
-const int kPortTimeoutDelay = 30 * 1000; // 30 seconds |
+// The delay before we begin checking if this port is useless. We set |
+// it to a little higher than a total STUN timeout. |
+const int kPortTimeoutDelay = cricket::STUN_TOTAL_TIMEOUT + 5000; |
} // namespace |
namespace cricket { |