[PATCH] SO_KEEPALIVE for port forwards

Markus Friedl markus.friedl at informatik.uni-erlangen.de
Fri Aug 24 17:50:11 EST 2001


On Thu, Aug 23, 2001 at 05:48:08PM -0700, Manoj Kasichainula wrote:
> Attached is a patch to allow a user to turn on TCP keepalives for port
> forwarded connections. It's mainly useful when the connections to the
> ssh listener are coming from many different boxes, some of which
> crash, leaving the service on the other side of the port forwarder
> waiting on connections indefinitely.
> 
> It creates a new option named "KeepAliveForward" to control this
> behavior. It's off by default for backward compatibility.
> 
> This patch was made for 2.9p2, but it applies almost perfectly to the
> CVS HEAD. I would've provided a patch to CVS instead, but the HEAD
> doesn't build for me at the moment.
> 
> Thoughts?
> 
> Please cc: me, I'm not on the list. Thanks.

> --- openssh-2.9p2/channels.c.keepalivetunnel	Wed Jun 13 12:18:05 2001
> +++ openssh-2.9p2/channels.c	Thu Aug 23 15:40:43 2001
> @@ -61,6 +61,9 @@
>  #include "canohost.h"
>  #include "key.h"
>  #include "authfd.h"
> +#include "readconf.h"
> +
> +extern Options options;

not allowed in channels.c



More information about the openssh-unix-dev mailing list