commit | bb67d87184c165028eb4a19699c439ba995422ef | [log] [tgz] |
---|---|---|
author | Prathmesh Prabhu <pprabhu@chromium.org> | Wed Apr 03 10:35:03 2013 -0700 |
committer | ChromeBot <chrome-bot@google.com> | Tue Apr 09 15:55:01 2013 -0700 |
tree | 963b68a59473d524479643af40cf3fb163ced454 | |
parent | dc80b326997e74bf05587f0a703e7e9a3c50e83c [diff] |
shill: Add ConnectionHealthChecker class to check connectivity status. ConnectionHealthChecker asynchronously creates a TCP connection with a remote server and checks that either (1) a small amount of data can be sent over the connection, or (2) the connection can be cleanly shut down. ConnectionHealthChecker may be provided multiple remote server addresses, and it attempts them in a round-robin fashion if one attempt fails. BUG=chromium:225913 TEST=Build and run unit tests. Change-Id: I38d9c107f4dd82ea780ee628d0b8bf4ec4929cf0 Reviewed-on: https://gerrit.chromium.org/gerrit/47248 Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org> Tested-by: Prathmesh Prabhu <pprabhu@chromium.org> Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org>