From 8b294f32700a97ea69a6a29e2d8c38963ff3d994 Mon Sep 17 00:00:00 2001 From: Nicolas Viennot Date: Sun, 18 Nov 2018 21:21:10 -0500 Subject: [PATCH] No keepalives for libssh >= 0.8.4 due to bug in keepalive --- tmate-ssh-latency.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tmate-ssh-latency.c b/tmate-ssh-latency.c index d5759887..f503adab 100644 --- a/tmate-ssh-latency.c +++ b/tmate-ssh-latency.c @@ -29,6 +29,13 @@ static void on_keepalive_timer(__unused evutil_socket_t fd, { struct tmate_ssh_client *client = arg; + /* + * libssh-0.8.4 or higher have a broken keepalive implementation due + * to packet filtering. + */ + if (ssh_version(SSH_VERSION_INT(0,8,4))) + return; + if (ssh_send_keepalive(client->session) == SSH_ERROR) return;