_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:
parent
97a1881749
commit
a3ce1073c4
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user