aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-03-15 19:27:04 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-03-15 20:58:13 +0100
commit0813db372b294b7789f506575b0ddb35173f809f (patch)
tree972ccd8163f186ea5d765b367ba5576aac34bf5b
parent53f507372e1db064244f3e29373cd39f0918572e (diff)
openvpn: Set reconnect timeout to a much lower value
It's a connection towards localhost, so it doesn't hurt reconnecting in a timely fashion, otherwise upon openvpn restart user needed to wait for 1 minute to see changes. Change-Id: Ie9638120d1ce5bfa43bc7c15f05cf81de37624c5
-rw-r--r--src/osysmon_openvpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osysmon_openvpn.c b/src/osysmon_openvpn.c
index 8c95984..d9e38f0 100644
--- a/src/osysmon_openvpn.c
+++ b/src/osysmon_openvpn.c
@@ -185,7 +185,7 @@ static bool openvpn_client_create(struct osysmon_state *os, const char *name, co
}
/* Wait for 1 minute before attempting to reconnect to management interface */
- osmo_stream_cli_set_reconnect_timeout(vpn->mgmt, 60);
+ osmo_stream_cli_set_reconnect_timeout(vpn->mgmt, 5);
osmo_stream_cli_set_read_cb(vpn->mgmt, read_cb);
osmo_stream_cli_set_connect_cb(vpn->mgmt, connect_cb);
osmo_stream_cli_set_disconnect_cb(vpn->mgmt, disconnect_cb);