mirror of
https://github.com/kingToolbox/WindTerm.git
synced 2024-12-26 04:10:08 +08:00
The timeout was not handled properly when processing the packet.
This commit is contained in:
parent
99c095a22c
commit
44cc3bb57c
@ -2922,6 +2922,12 @@ int ssh_channel_read_timeout(ssh_channel channel,
|
||||
timeout_ms,
|
||||
ssh_channel_read_termination,
|
||||
&ctx);
|
||||
|
||||
if (rc == SSH_AGAIN && ssh_is_blocking(session)) {
|
||||
ssh_set_error(session, SSH_FATAL, "Handle packets timeout.");
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (rc == SSH_ERROR){
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user