changeset 1670:aeda68938596

Add files via upload (#90) When SSHKeepAlive is enabled, dropbear idletimeout is not working as expected.
author jcmathews <jesselcmathews@yahoo.co.in>
date Mon, 25 May 2020 18:32:59 +0530
parents 3080aed32bf1
children 5c8913b7464c
files process-packet.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}