# HG changeset patch # User jcmathews # Date 1590411779 -19800 # Node ID aeda68938596d026a86a7544aa2b9d59643b025b # Parent 3080aed32bf14cb37637dfb469b1fb4ee170a55c Add files via upload (#90) When SSHKeepAlive is enabled, dropbear idletimeout is not working as expected. diff -r 3080aed32bf1 -r aeda68938596 process-packet.c --- a/process-packet.c Mon May 25 14:54:29 2020 +0200 +++ b/process-packet.c Mon May 25 18:32:59 2020 +0530 @@ -78,7 +78,9 @@ idle detection. This is slightly incorrect since a tcp forwarded global request with failure won't trigger the idle timeout, but that's probably acceptable */ - if (!(type == SSH_MSG_GLOBAL_REQUEST || type == SSH_MSG_REQUEST_FAILURE)) { + if (!(type == SSH_MSG_GLOBAL_REQUEST + || type == SSH_MSG_REQUEST_FAILURE + || type == SSH_MSG_CHANNEL_FAILURE)) { ses.last_packet_time_idle = now; }