mirror of https://gerrit.osmocom.org/osmo-sysmon
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
This commit is contained in:
parent
53f507372e
commit
0813db372b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue