mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
_libssh2_channel_write: removed 32500 size limit
Neither _libssh2_channel_write nor sftp_write now have the 32500 size limit anymore and instead the channel writing function now has its own logic to send data in multiple calls until everything is sent.
This commit is contained in:
@@ -1400,10 +1400,6 @@ static ssize_t sftp_write(LIBSSH2_SFTP_HANDLE *handle, const char *buffer,
|
||||
unsigned char *s, *data;
|
||||
int rc;
|
||||
|
||||
/* we limit this to just send a single SSH packet at a time */
|
||||
if(count > 32500)
|
||||
count = 32500;
|
||||
|
||||
packet_len = handle->handle_len + count + 25;
|
||||
|
||||
if (sftp->write_state == libssh2_NB_state_idle) {
|
||||
|
||||
Reference in New Issue
Block a user