diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2009-09-28 07:27:22 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2009-09-28 07:27:22 +0000 |
commit | e1e977f3cc52e230031f8770b0a9c977eab7db69 (patch) | |
tree | b388e4c981ee17ebc53e4baf621b103cf839fc00 /forward-inline.h | |
parent | Eliminated the limitation on the number of options that can be pushed (diff) | |
download | openvpn-e1e977f3cc52e230031f8770b0a9c977eab7db69.tar.xz |
Added --server-poll-timeout option : when polling possible remote
servers to connect to in a round-robin fashion, spend no more than
n seconds waiting for a response before trying the next server.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5010 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r-- | forward-inline.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/forward-inline.h b/forward-inline.h index c87996d..bb8f542 100644 --- a/forward-inline.h +++ b/forward-inline.h @@ -119,6 +119,17 @@ check_inactivity_timeout (struct context *c) } #if P2MP + +static inline void +check_server_poll_timeout (struct context *c) +{ + void check_server_poll_timeout_dowork (struct context *c); + + if (c->options.server_poll_timeout + && event_timeout_trigger (&c->c2.server_poll_interval, &c->c2.timeval, ETT_DEFAULT)) + check_server_poll_timeout_dowork (c); +} + /* * Scheduled exit? */ |