summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGert Doering <gert@greenie.muc.de>2015-07-01 17:40:39 +0200
committerGert Doering <gert@greenie.muc.de>2015-09-17 17:04:38 +0200
commitafb93fac803fbab7406d3b2dff6d1f39365bca74 (patch)
tree24962e96250d5f068efdc790d3a3cb1d14bbc1fb
parent8db23a57c878abd5b01c784c7db570176de555ef (diff)
downloadopenvpn-afb93fac803fbab7406d3b2dff6d1f39365bca74.zip
openvpn-afb93fac803fbab7406d3b2dff6d1f39365bca74.tar.gz
openvpn-afb93fac803fbab7406d3b2dff6d1f39365bca74.tar.xz
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 <arne@rfc2549.org> Message-Id: <20150701154039.GG382@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/9851 Signed-off-by: Gert Doering <gert@greenie.muc.de>
-rw-r--r--src/openvpn/forward.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvpn/forward.c b/src/openvpn/forward.c
index 92e443a..7a5d383 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