Archive Index
This month's Index
|
Subject: Re: libssh2 master 7899d28 sftp_write: handle "left over" acked data
Re: libssh2 master 7899d28 sftp_write: handle "left over" acked data
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 11 Nov 2010 19:57:55 +0100 (CET)
On Thu, 11 Nov 2010, Peter Stuge wrote:
>> The SFTP handle struct now buffers number of acked bytes that haven't
Yes, it is an unfortunate side-effect of our API and the new multi-packet
> It would be nice to change at least _sftp_write() so that it can return more
That's not a bad idea. There are two drawbacks with it though as I see it: 1)
> If I start by _sftp_write()ing 32000 byte, 4000 get sent, and I then
It's really not that big of a problem. It is mostly a problem to keep things
If you first call it with 32000 bytes and 4000 get sent, and you then switch
Luckily, I don't think this kind of situation is very likely to happen much.
-- / daniel.haxx.se _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-11-11 |