Add files via upload (#90)

When SSHKeepAlive is enabled, dropbear idletimeout is not working as expected.
This commit is contained in:
jcmathews 2020-05-25 18:32:59 +05:30 committed by GitHub
parent 8f8a3dff70
commit fb9a78c3ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,9 @@ void process_packet() {
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;
}