commit | 7d2904eaae91bd096eccef637dce430a41923424 | [log] [tgz] |
---|---|---|
author | Hung-ying Tyan <tyanh@google.com> | Wed Jun 29 18:04:31 2011 +0800 |
committer | Hung-ying Tyan <tyanh@google.com> | Thu Jun 30 14:37:24 2011 +0800 |
tree | 94b54b79795ae3734cecd17d8e875f8d267cea67 | |
parent | 3efff6c5840a99faadc3ee6197940c3290f65a62 [diff] |
Make NAT port timeout measurement more flexible. In two ways: (1) When there's a session timeout, restart the measurement at a later time instead of just stalling. (2) When there's a port change, do not re-measure the interval if the current interval works well in the past. We keep success count and decrement it by half when there's a port change. When the count is below a threshold, we restart the measurement process. Change-Id: I7256464435a5e2d2a239bfccaa004e9ceb1d9ce5