cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [Binary/ASCII FTP transfert] Is a bug or not ?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 23 Mar 2005 22:53:56 +0100 (CET)

On Wed, 23 Mar 2005 delphine.menjikoff_at_orsyp.com wrote:

> My FTP server is a Linux 2.2.14-5.0 machine and my client application is
> built (with a static libcurl) on the same machine.

But what server software is it? It sure seems like a broken one.

> I try a binary and an ASCII (CURLOPT_TRANSFERTTEXT) transfer of my file. And
> I have the same problem, my client application run indefinitely while the
> file is completely written.

...

> Progression = 1050633.00 / 1050633.00 (100 %)
> Progression = 1050633.00 / 1050633.00 (100 %)
> Progression = 1050633.00 / 1050633.00 (100 %)

...

> I don't understand. Libcurl seem to waiting for something, but what?

For the connection to get closed by the server. That's how end of transfer is
signalled.

> All bytes are written on the remote file (and the progression function
> proves it). And when I check my remote file, this one is complete, exactly
> the same size as on the server!!!!

It seems to me like the server is misbehaving.

> I think that someone may have the same problem as me (lot of usage of
> libcurl is for FTP transfer I suppose).

Based on what people estimate number of curl users to on the current poll on
the curl web site and the fact that you are the first to report this problem,
it backs up my suspicions that your server is the guilty part here. Not
libcurl.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-03-23