cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-693163 ] Incorrect reporting of partial downlad.

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 25 Feb 2003 12:40:31 -0800

Bugs item #693163, was opened at 2003-02-25 12:40
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=693163&group_id=976

Category: ftp
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Incorrect reporting of partial downlad.

Initial Comment:
In ftp.c - when the download size is returned as zero from the server, libcurl reports the download as being partial, even though it is not. If you then try to reuse the connection for another download, you are one message behind and will produce a "Cant cd to xxx" error. The following change in ftp.c seems to resolve this:

in CCurl_ftp_done()

--
if((-1 != conn->size) && (conn->size != *ftp->bytecountp) &&
       (conn->maxdownload != *ftp->bytecountp))
should be
if((-1 != conn-> maxdownload) && (conn->size != *ftp->bytecountp) &&
       (conn->maxdownload != *ftp->bytecountp))
----------------------------------------------------------------------
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=693163&group_id=976
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-02-25