curl-library
Re: SFTP and CURLOPT_RANGE
From: Ian Lynagh <igloo_at_earth.li>
Date: Sat, 13 Sep 2008 02:28:17 +0100
Received on 2008-09-13
Date: Sat, 13 Sep 2008 02:28:17 +0100
On Fri, Sep 12, 2008 at 02:48:29PM -0400, Wei Weng wrote:
>
> struct SingleRequest {
> ...
> curl_off_t maxdownload; /* in bytes, the maximum amount of data to fetch,
> -1 means unlimited */
> ...
> };
Ah, thanks, I'd tried setting it in the SSH_SCP_DOWNLOAD_INIT case, but
it looks like SSH_SFTP_DOWNLOAD_STAT is the place to do it.
So, attached is a patch that works for me. Like I say, I'm not familiar
with the code, so someone who is should sanity check it, but it would be
great to see this in a future libcurl release!
Thanks
Ian
- text/x-diff attachment: sftp_range.patch