commit 626206f0d86488e5d0569fae8551049e5006703b
parent e1be630b841d080d6cc697bad0f325c002136664
Author: Joris Vink <joris@coders.se>
Date: Mon, 29 Sep 2014 14:47:01 +0200
Set idle_timer.length in ktunnel to a high number.
This makes my tunnels not timeout every 20 seconds, much nicer.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/examples/ktunnel/src/ktunnel.c b/examples/ktunnel/src/ktunnel.c
@@ -132,6 +132,10 @@ ktunnel_pipe_create(struct connection *c, const char *host, const char *port)
cpipe->proto = CONN_PROTO_UNKNOWN;
cpipe->state = CONN_STATE_ESTABLISHED;
+ /* Don't let these connections timeout any time soon. */
+ cpipe->idle_timer.length = 10000000000;
+ c->idle_timer.length = 10000000000;
+
c->hdlr_extra = cpipe;
cpipe->hdlr_extra = c;
c->disconnect = ktunnel_pipe_disconnect;