Set idle_timer.length in ktunnel to a high number.

This makes my tunnels not timeout every 20 seconds, much nicer.
This commit is contained in:
Joris Vink 2014-09-29 14:47:01 +02:00
parent e1be630b84
commit 626206f0d8
1 changed files with 4 additions and 0 deletions

View File

@ -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;