cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1183 curl FTP upload performance degration version 7.28.1

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Tue, 02 Apr 2013 15:19:41 +0000

I can't repeat it on my linux box with curl 7.29.0

$ curl -P - --crlf -T [PNG] --trace-ascii dump --trace-time ftp://user:password@localhost/tmp/test/removeme

(I tried this with a faked added latency of 250 ms to localhost but it made no difference)

17:12:24.056400 == Info: About to connect() to localhost port 21 (#0)
17:12:24.056659 == Info: Trying 127.0.0.1...
17:12:24.556773 == Info: Connected to localhost (127.0.0.1) port 21 (#0)
17:12:25.059123 <= Recv header, 20 bytes (0x14)
0000: 220 (vsFTPd 3.0.2)
17:12:25.059200 => Send header, 13 bytes (0xd)
0000: USER user
17:12:25.559288 <= Recv header, 34 bytes (0x22)
0000: 331 Please specify the password.
17:12:25.559340 => Send header, 15 bytes (0xf)
0000: PASS password
17:12:26.226634 <= Recv header, 23 bytes (0x17)
0000: 230 Login successful.
17:12:26.226699 => Send header, 5 bytes (0x5)
0000: PWD
17:12:26.726807 <= Recv header, 20 bytes (0x14)
0000: 257 "/home/daniel"
17:12:26.726853 == Info: Entry path is '/home/daniel'
17:12:26.726883 => Send header, 9 bytes (0x9)
0000: CWD tmp
17:12:27.226992 <= Recv header, 37 bytes (0x25)
0000: 250 Directory successfully changed.
17:12:27.227045 => Send header, 10 bytes (0xa)
0000: CWD test
17:12:27.727155 <= Recv header, 37 bytes (0x25)
0000: 250 Directory successfully changed.
17:12:27.727295 => Send header, 26 bytes (0x1a)
0000: EPRT |1|127.0.0.1|52001|
17:12:28.227489 <= Recv header, 51 bytes (0x33)
0000: 200 EPRT command successful. Consider using EPSV.
17:12:28.227533 == Info: Connect data stream actively
17:12:28.227914 => Send header, 8 bytes (0x8)
0000: TYPE I
17:12:28.728030 <= Recv header, 31 bytes (0x1f)
0000: 200 Switching to Binary mode.
17:12:28.728083 => Send header, 15 bytes (0xf)
0000: STOR removeme
17:12:29.728941 <= Recv header, 22 bytes (0x16)
0000: 150 Ok to send data.
17:12:29.728982 == Info: Preparing for accepting server on data port
17:12:29.728989 == Info: Checking for server connect
17:12:29.728994 == Info: Ready to accept data connection from server
17:12:29.729019 == Info: Connection accepted from server
17:12:29.729473 => Send data, 16386 bytes (0x4002)
0000: .PNG.
0007: .
000a: ....IHDR...X...@......i......IDATx....Tz........................
004a: ................................................................
008a: ................................................................
00ca: ................................................................

---
** [bugs:#1183] curl FTP upload performance degration version 7.28.1**
**Status:** open
**Labels:** performance 
**Created:** Thu Jan 17, 2013 07:15 AM UTC by Daniel Theron
**Last Updated:** Tue Apr 02, 2013 01:11 PM UTC
**Owner:** Daniel Stenberg
Hi There,
I am in the process upgrading curl from version 7.19.6 to version 7.28.1 on our Solaris 10 servers. I have written a unix script to do file upload tests with ftp & sftp, and with different file types like binary and ascii (dos and unix).
With the script I noticed ftp uploads take about 2 to 3 times longer with version 7.28.1 compared to 7.19.6. sftp upload speeds seems to be ok.
Here is the technical details:
$ uname -a
SunOS M3000-dev-1 5.10 Generic_147440-25 sun4u sparc SUNW,SPARC-Enterprise
CURL latest version - slow with ftp uploads
$ curl --version
curl 7.28.1 (sparc-sun-solaris2.10) libcurl/7.28.1 OpenSSL/1.0.1c zlib/1.2.7 libidn/1.25 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
CURL older version - fast ftp upload speeds
$ curl --version
curl 7.19.6 (sparc-sun-solaris2.10) libcurl/7.19.6 OpenSSL/0.9.8x zlib/1.2.7 libidn/1.25 libssh2/1.4.3
Protocols: tftp ftp telnet dict http file https ftps scp sftp
Features: IDN IPv6 Largefile NTLM SSL libz
I will attach the script, it uploads 3x 250K binary files with sftp&ftp, 3x 25K ascii (dos & unix) with sftp&ftp
Let me know if you need more info
Thanks,
Daniel
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/curl/bugs/1183/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
Received on 2013-04-02

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET