From: Gert Doering Date: Wed, 1 Jul 2015 15:40:39 +0000 (+0200) Subject: Make client delay less before sending PUSH_REQUEST X-Git-Tag: v2.4_alpha1~250 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afb93fac803fbab7406d3b2dff6d1f39365bca74;p=thirdparty%2Fopenvpn.git Make client delay less before sending PUSH_REQUEST Speed up PUSH_REQUEST handling on the client side by reducing the amount of dependent 1s-coarse-timers to "just one". After "TLS is up!", one timer needs to fire to wakeup "check_connection_established_dowork()", and that one used to setup another 1s timer before sending PUSH_REQUEST - which is just dead time where we sit idly... So, fire immediately. Acked-by: Arne Schwabe Message-Id: <20150701154039.GG382@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/9851 Signed-off-by: Gert Doering --- diff --git a/src/openvpn/forward.c b/src/openvpn/forward.c index 92e443ac8..7a5d38385 100644 --- a/src/openvpn/forward.c +++ b/src/openvpn/forward.c @@ -212,8 +212,8 @@ check_connection_established_dowork (struct context *c) 0); } #endif - /* send push request in 1 sec */ - event_timeout_init (&c->c2.push_request_interval, 1, now); + /* fire up push request right away (already 1s delayed) */ + event_timeout_init (&c->c2.push_request_interval, 0, now); reset_coarse_timers (c); } else