Subject: keepalive support

keepalive support

From: Simon Josefsson <simon_at_josefsson.org>
Date: Thu, 28 Jan 2010 14:26:30 +0100

Folks,

I'm adding support for keepalive to libssh2.

To illustrate our current problem, start a sshd like this:

$ sudo /usr/sbin/sshd -d -o ClientAliveInterval=1

Connect to it with a client like the one below, you will see OpenSSH
terminate the connection after 3 seconds like this:

Timeout, client not responding.

It takes 3 seconds for the timeout because the default value for
ClientAliveCountMax is 3, and the ClientAliveInterval=1 setting asks
sshd to send one request per second.

/Simon

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Received on 2010-01-28