_libssh2_channel_write: count resent data as written

In the logic that resends data that was kept for that purpose due to a
previous EAGAIN, the data was not counted as sent causing badness.
This commit is contained in:
Daniel Stenberg 2010-11-13 12:23:23 +01:00
parent 97a1881749
commit a3ce1073c4

View File

@ -2117,6 +2117,7 @@ _libssh2_channel_write(LIBSSH2_CHANNEL *channel, int stream_id,
/* all is sent, clear the buf pointer */ /* all is sent, clear the buf pointer */
channel->transport_buf = NULL; channel->transport_buf = NULL;
wrote += rc;
} }
_libssh2_debug(channel->session, LIBSSH2_TRACE_CONN, _libssh2_debug(channel->session, LIBSSH2_TRACE_CONN,