cURL / Mailing Lists / curl-library / Single Mail

curl-library

strange behaviour, data connection mix!?

From: Armel Asselin <asselin.armel_at_wanadoo.fr>
Date: Wed, 23 Aug 2006 18:36:27 +0200

Hello,

I'm currently using libcurl to download files through FTP. I launch several
parallel connections (by adding several easy handle to a multi handle) to
the sites, it works perfectly with several servers but with one of them
gives strange results.

I have logged everything and I fall on this:
(format is: date: FTP TYPE easy* text) (TYPE is: c=comment, > header in, <
header out, I data in, O data out)

18:23:06: FTP: > 2746060 RETR 51472503.asp
18:23:06: FTP: < 2746060 125 Data connection already open; Transfer
starting.
18:23:06: FTP: c 2746060 Getting file with size: -1
18:23:06: FTP: c 2746060 Getting file with size: -1
18:23:06: FTP: > 1C7EE70 RETR 51470179.asp
18:23:06: FTP: < 1C7EE70 125 Data connection already open; Transfer
starting.
18:23:06: FTP: c 1C7EE70 Getting file with size: -1
18:23:06: FTP: I 1C7EE70
<a name="51472503"></a><h1 align="center">Platform differences</h1>
18:23:07: FTP: I 2746060
<a name="51470179"></a><h1 align="center">Installing on Windows from the
Ellié Computing web site</h1>

NB: the program is mono-threaded (so no mix possible in the log)
the problem is that without something going wrong this is virtually
impossible: the name attribute is the file name normally. What it means, is
that something amongst libcurl, my NAT, [potential target server NAT],
Microsoft FTP Server, is swapping the data connections.
The "125 data connection already open" result code happens for many other
files which works OK.

did anybody already encounter this behaviour?

Armel Asselin
Received on 2006-08-23