commit | 129d0b08fdf9588f7c8feeb9db3def30973c092e | [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 | 1b1d54102c01a37d6d9fdbaaf884120f98f27337 | |
parent | 99705b52ec952012bedc4aa8e1f62caff80a6a2f [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