1
1

call libssh2_error() when transport_write() returns EAGAIN

_libssh2_channel_write() should never return error without
libssh2_error() getting called
Этот коммит содержится в:
Daniel Stenberg 2009-08-30 19:28:43 +02:00
родитель 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) {