mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
channels1: made channel_write1 nonblocking
This commit is contained in:
@@ -291,8 +291,10 @@ int channel_write1(ssh_channel channel, const void *data, int len) {
|
|||||||
if (packet_send(session) == SSH_ERROR) {
|
if (packet_send(session) == SSH_ERROR) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
ssh_handle_packets(session, SSH_TIMEOUT_NONBLOCKING);
|
||||||
}
|
}
|
||||||
|
if (ssh_blocking_flush(session,SSH_TIMEOUT_USER) == SSH_ERROR)
|
||||||
|
return -1;
|
||||||
return origlen;
|
return origlen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user