1
0
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:
Daniel Stenberg
2010-10-23 01:16:12 +02:00
parent dec0ea9e70
commit a94886f157
3 changed files with 76 additions and 8 deletions

View File

@@ -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) {