Change in osmo-sysmon[master]: openvpn: Set reconnect timeout to a much lower value

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Fri Mar 15 19:59:01 UTC 2019


Pau Espin Pedrol has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sysmon refs/changes/83/13283/1

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: newchange
Gerrit-Change-Id: Ie9638120d1ce5bfa43bc7c15f05cf81de37624c5
Gerrit-Change-Number: 13283
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190315/2211fdc8/attachment.htm>


More information about the gerrit-log mailing list