call libssh2_error() when transport_write() returns EAGAIN
_libssh2_channel_write() should never return error without libssh2_error() getting called
Этот коммит содержится в:
родитель
06278728e2
Коммит
5e5ead00b4
@ -2047,8 +2047,8 @@ _libssh2_channel_write(LIBSSH2_CHANNEL *channel, int stream_id,
|
||||
channel->write_s -
|
||||
channel->write_packet);
|
||||
if (rc == PACKET_EAGAIN) {
|
||||
_libssh2_debug(session, LIBSSH2_DBG_CONN,
|
||||
"libssh2_transport_write returned EAGAIN");
|
||||
libssh2_error(session, rc,
|
||||
"Unable to send channel data", 0);
|
||||
return rc;
|
||||
}
|
||||
else if (rc) {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user