On Saturday 05 June 2004 15:36, Mike Auty wrote:
> Hi,
> Since I've upgraded to OpenVPN 2, I've started seeing an interesting
> effect. Originally (way back at _test23) it didn't happen very much,
> and seemingly a restart of either the server or client would fix it, but
> recently it's been happening a lot.
> For historical reasons (I used to be on windows) I set my ping and
> ping-reset times to very low values (10 and 60) so that I'd see the
> adaptor go down within a minute of when my connection went down. Under
> the old 1.5 vpns this was fine, but since the upgrade some of the
> windows installation's I've used have reported that the openvpn adaptor
> goes up and down every couple of minutes and in the recent _beta2 it
> seems to happen quite often (although it's still random in that
> sometimes it won't).
Try this patch
--
vda
--- ping-inline.h.orig Wed Apr 21 08:03:22 2004
+++ ping-inline.h Sun May 30 18:07:54 2004
@@ -50,9 +50,10 @@
{
void check_ping_send_dowork (struct context *c);
if (c->options.ping_send_timeout
- && !c->c2.to_link.len
&& event_timeout_trigger (&c->c2.ping_send_interval,
- &c->c2.timeval))
+ &c->c2.timeval)
+ && !c->c2.to_link.len
+ )
check_ping_send_dowork (c);
}