commit | a42afe3a1621b8262d5404ecfaf200d3d76bd454 | [log] [tgz] |
---|---|---|
author | Darin Petkov <petkov@chromium.org> | Tue Feb 05 16:53:52 2013 +0100 |
committer | ChromeBot <chrome-bot@google.com> | Wed Feb 06 10:58:15 2013 -0800 |
tree | 94574cc71c2c986979c5b17d609cb149aba652d4 | |
parent | 2717a10096e12e46413adf47b39c5b19cd33bce7 [diff] |
shill: openvpn: Allow automatic reconnect when underlying connection reconnects. When the underlying connection drops, restart the openvpn client, thus resetting the connection and initiating a reconnect attempt. The reconnect will be held until a new carrier connection is established, up to the connect timeout of one minute. Also, explicitly process SUCCESS management API messages so that they're not logged as WARNINGs. BUG=chromium-os:32416 TEST=unit tests; while connected to corp OpenVPN, switch between APs and observe VPN reconnects; while connected to corp OpenVPN, disconnect or disable WiFi, reconnect or re-enable it in a couple of seconds and observe VPN reconnects. Change-Id: I672db885d589fa020419d0badb480aee9bcc851a Reviewed-on: https://gerrit.chromium.org/gerrit/42616 Tested-by: Darin Petkov <petkov@chromium.org> Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Darin Petkov <petkov@chromium.org>