From 5e5ead00b490c7a3447d45eb51fde21eeaee2d1e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 30 Aug 2009 19:28:43 +0200 Subject: [PATCH] call libssh2_error() when transport_write() returns EAGAIN _libssh2_channel_write() should never return error without libssh2_error() getting called --- src/channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channel.c b/src/channel.c index 8e27c5c..b417f07 100644 --- a/src/channel.c +++ b/src/channel.c @@ -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) {