-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tags 348641 + wontfix
thanks

Hi Andreas--

Sorry to take so long to respond to this feature request.

It sounds like you're suggesting that redir use TCP keepalive
settings.  Note that this is different from openssh's
ServerAliveInterval and ServerAliveCountMax settings, and more
analogous to openssh's TCPKeepAlive option (man ssh_config for more
details).

the programming details of how this might be done are suggested here:

  http://tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/

note that there are 3 prospective options for each connection (named
here following the sysctl convention):

 * time: how long without data until we decide to try to send
   keepalive packets

 * intvl: how often we send them once they're being sent

 * probes: how many unacknowledged keepalives should trigger failure

(plus, implicitly perhaps, whether we should bother with keepalive at
all, which i'll treat as the time == 0 case).

I'm concerned that the interface for redir is clumsy enough already,
though.  i don't want to introduce 6 additional potential arguments (3
for incoming, 3 for outgoing) to a program that's already on the edge
of unwieldy.

Have you considered using socat for your purposes?  I note that socat
contains options for all of these features.  socat itself can be
unwieldy, but it is far more thorough and flexible than redir in terms
of what options it supports.

You may also be interested in libkeepalive:

  http://libkeepalive.sourceforge.net/

which would let you add this functionality to any program (albeit in a
cruder way: every socket would be set with the same keepalive
settings).  libkeepalive isn't in debian yet, but you could file an
RFP for it (please cc me if you do this).

Given these other options, if you still feel that this functionality
belongs in redir, please followup here and we'll sort it out.

Regards,

        --dkg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFGRVD0iXTlFKVLY2URAlPfAKDJ2NnLPs7AnbprvPNJ8sQ6x8AHWgCeKtLT
N/nJD9XifCAZHP1f2pw5ggs=
=ioBd
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to