[PATCH] Added Null packet keepalive option
Chris Lightfoot
chris at ex-parrot.com
Thu Mar 15 08:44:10 EST 2001
On Wed, Mar 14, 2001 at 10:31:23PM +0100, Markus Friedl wrote:
> SSH_MSG_NONE is no message that is allowd to appear on
> the wire, it's not defined at all. SSH_MSG_IGNORE breaks
> ssh-1.2.18 to 1.2.22, but i think they'll accept an ignore message
> w/o payload.
>
> > + /* Send a keepalive packet (not SSH_MSG_IGNORE as this crashes
> > + * some servers...).
> > + */
> > + packet_start(SSH_MSG_NONE);
> > + packet_send();
> > + break;
I guess the choice here is between conforming to
standards and breaking old software, or ignoring
the standards and using something which seems to
work. I haven't noticed _MSG_NONE causing
problems with any of the servers I use, but I am
not going to argue that it is the Right Thing To
Use(TM).
--
Chris Lightfoot -- www.ex-parrot.com/~chris/
Life-- some days you're the dog, some days you're the hydrant
(Anonymous)
More information about the openssh-unix-dev
mailing list