Pau Espin Pedrol has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/13283 )

Change subject: openvpn: Set reconnect timeout to a much lower value
......................................................................

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
---
M src/osysmon_openvpn.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



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 @@
        }

        /* 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);

--
To view, visit https://gerrit.osmocom.org/13283
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sysmon
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie9638120d1ce5bfa43bc7c15f05cf81de37624c5
Gerrit-Change-Number: 13283
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>

Reply via email to