Subject: keepalive support

keepalive support

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


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.



Received on 2010-01-28