Thank you Gert for a tip, I'll try connect-retry.

As for not responding to HUP, I'll file a bug report. One could find useful
to send HUP signal (like I do through the post-connect script in wicd)
whenever connection reappears so not reacting on it makes to wait
additional time for openvpn to connect.

On 13 February 2017 at 16:42, Gert Doering <g...@greenie.muc.de> wrote:

> Hi,
>
> On Mon, Feb 13, 2017 at 08:26:56AM +0800, Yevgeny Kosarzhevsky wrote:
> > it looks like significant changes were make on 2.4 version in
> restart-pause.
> > If there a way to control it from config file?
>
> Restart-delay is now exponentially growing - that is: it starts with
> a quick restart, and if your server keeps not working, it goes up to
> a maximum value, to avoid filling the log files all around with repetitive
> messages.
>
> If you look at the man page, you can find
>
>        --connect-retry n [max]
>               Wait n seconds  between connection attempts (default=5).
>               Repeated reconnection attempts are slowed down after 5
> retries
>               per remote by doubling the wait time after each unsuccessful
>               attempt. The optional argument max specifies the maximum
> value
>               of wait time in seconds at which it gets capped
> (default=300).
>
>
> [..]
> > Also I found that the process ignored HUP signal during this period. Had
> to
> > restart it.
> > I'd consider this a bug.
>
> One could argue that this is a bug indeed (not reacting to SIGHUP while
> waiting for connect-retry).  So please file one in our trac on
> https://community.openvpn.net/
>
> gert
>
> --
> USENET is *not* the non-clickable part of WWW!
>                                                            //
> www.muc.de/~gert/
> Gert Doering - Munich, Germany
> g...@greenie.muc.de
> fax: +49-89-35655025                        g...@net.informatik.tu-
> muenchen.de
>



-- 
Regards,
Yevgeny
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to