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: Thu, 04 Apr 2013 21:19:30 +0000

Thanks for the test account, it is very helpful. Can you check and see if the following patch fixes the problem for you? It seems to do it in my tests...

~~~~
diff --git a/lib/ftp.c b/lib/ftp.c
index dec4800..f0df719 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -886,6 +886,7 @@ static int ftp_domore_getsock(struct connectdata *conn, curl
 
   switch(ftpc->state) {
   case FTP_STOP:
+ case FTP_STOR:
     break;
   default:
     return Curl_pp_getsock(&conn->proto.ftpc.pp, socks, numsocks);
~~~~

---
** [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:** Wed Apr 03, 2013 09:17 AM 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-04

These mail archives are generated by hypermail.

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

File upload with ASP.NET