mirror of
https://github.com/clearml/dropbear
synced 2025-04-27 17:31:16 +00:00
Add files via upload (#90)
When SSHKeepAlive is enabled, dropbear idletimeout is not working as expected.
This commit is contained in:
parent
8f8a3dff70
commit
fb9a78c3ee
@ -78,7 +78,9 @@ void process_packet() {
|
|||||||
idle detection. This is slightly incorrect since a tcp forwarded
|
idle detection. This is slightly incorrect since a tcp forwarded
|
||||||
global request with failure won't trigger the idle timeout,
|
global request with failure won't trigger the idle timeout,
|
||||||
but that's probably acceptable */
|
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;
|
ses.last_packet_time_idle = now;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user