search for: keepalives_forward

Displaying 1 result from an estimated 1 matches for "keepalives_forward".

2001 Aug 24
2
[PATCH] SO_KEEPALIVE for port forwards
...n; char *rtype; + int one = 1; if (FD_ISSET(c->sock, readset)) { debug("Connection to port %d forwarding " @@ -781,6 +785,13 @@ if (newsock < 0) { error("accept: %.100s", strerror(errno)); return; + } + /* Set keepalives if requested */ + if (options.keepalives_forward && + setsockopt(newsock, SOL_SOCKET, SO_KEEPALIVE, + (void *) &one, sizeof(one)) < 0) + { + error("setsockopt SO_KEEPALIVE: %.100s", strerror(errno)); } newch = channel_new(rtype, nextstate, newsock, newsock, -1, --- openssh-2.9p2/readconf.c.keepal...