curl-library
FTP and CURLMOPT_PIPELINING
Date: Mon, 13 Dec 2010 11:55:56 +0300
Hello all!
Is CURLMOPT_PIPELINING supposed to work with FTP transfers?
When I start 2 FTP downloads from the same server using multi interface
with this option enabled only one download succeeded.
With VERBOSE option enabled I got the following log (hex number in first
column is easy handle):
0xdfed7e0 < 220 (vsFTPd 2.0.5)
0xdfed7e0 > USER anonymous
0xdfed7e0 < 331 Please specify the password.
0xdfed7e0 > PASS ftp_at_example.com
0xdfed7e0 < 230 Login successful.
0xdfed7e0 > PWD
0xdfed7e0 < 257 "/"
0xdfed7e0 > CWD /
0xdfed7e0 < 250 Directory successfully changed.
0xdfed7e0 > EPSV
0xdfed7e0 < 229 Entering Extended Passive Mode (|||22825|)
0xdfed7e0 > TYPE I
0xdfed7e0 < 200 Switching to Binary mode.
0xdfed7e0 > SIZE file1
0xdfed7e0 < 213 14
0xdfed7e0 > RETR file1
0xdfed7e0 < 150 Opening BINARY mode data connection for file1 (14
bytes).
0xdff63a0 > CWD /
0xdff63a0 < 226 File send OK.
0xdff63a0 > EPSV
0xdff63a0 < 250 Directory successfully changed.
0xdff63a0 > PASV
0xdff63a0 < 229 Entering Extended Passive Mode (|||6762|)
0xdff63a0 > QUIT
0xdff63a0 < 227 Entering Passive Mode (127,0,0,1,223,240)
So it didn't wait for 226 in the first file transfer and started the
second one.
BTW I use libcurl 7.21.2
Thanks!
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-13