Mercurial > dropbear
comparison process-packet.c @ 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 | 9169e4e7cbee |
children | 41bf8f216644 |
comparison
equal
deleted
inserted
replaced
1669:3080aed32bf1 | 1670:aeda68938596 |
---|---|
76 | 76 |
77 /* Ignore these packet types so that keepalives don't interfere with | 77 /* Ignore these packet types so that keepalives don't interfere with |
78 idle detection. This is slightly incorrect since a tcp forwarded | 78 idle detection. This is slightly incorrect since a tcp forwarded |
79 global request with failure won't trigger the idle timeout, | 79 global request with failure won't trigger the idle timeout, |
80 but that's probably acceptable */ | 80 but that's probably acceptable */ |
81 if (!(type == SSH_MSG_GLOBAL_REQUEST || type == SSH_MSG_REQUEST_FAILURE)) { | 81 if (!(type == SSH_MSG_GLOBAL_REQUEST |
82 || type == SSH_MSG_REQUEST_FAILURE | |
83 || type == SSH_MSG_CHANNEL_FAILURE)) { | |
82 ses.last_packet_time_idle = now; | 84 ses.last_packet_time_idle = now; |
83 } | 85 } |
84 | 86 |
85 /* This applies for KEX, where the spec says the next packet MUST be | 87 /* This applies for KEX, where the spec says the next packet MUST be |
86 * NEWKEYS */ | 88 * NEWKEYS */ |