From 3fc67466adb563be9c940f52788d85058921746e Mon Sep 17 00:00:00 2001 From: Nicolas Viennot Date: Sun, 18 Nov 2018 20:57:49 -0500 Subject: [PATCH] The keepalives don't need to be that frequent without latency measurements --- tmate.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmate.h b/tmate.h index 7335b3a0..fa433f14 100644 --- a/tmate.h +++ b/tmate.h @@ -137,7 +137,11 @@ extern void tmate_flush_pty(struct tmate_session *session); /* tmate-ssh-server.c */ #define TMATE_SSH_BANNER "tmate" +#ifdef ENABLE_LATENCY #define TMATE_SSH_KEEPALIVE 10 +#else +#define TMATE_SSH_KEEPALIVE 50 +#endif #define TMATE_ROLE_DAEMON 1 #define TMATE_ROLE_PTY_CLIENT 2