cURL cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1188 slow upload on Windows

From: zenden2k <zenden2k_at_users.sf.net>
Date: Mon, 13 Apr 2015 21:01:42 +0000

Actually, this solution doesn't work for me.
I have 100 mbit connection and I still have to use CURLOPT_SOCKOPTFUNCTION
and setsockopt(SO_SNDBUF...) with buffer size = 1MB in my code. 16 kb is too small buffer and gives me just 10% of the maximum upload speed.
Tested on Windows XP, 7, 8.1.
 

---
** [bugs:#1188] slow upload on Windows**
**Status:** closed-fixed
**Labels:** performance 
**Created:** Mon Feb 04, 2013 10:39 AM UTC by Andrew Kurushin
**Last Updated:** Fri Jun 21, 2013 01:43 PM UTC
**Owner:** Daniel Stenberg
my colleague experienced low ftp upload speed with curl(7.26, 7.28.1). ~500kb/s 
(win client to linux ftp server, both located in different countries so connection was not so ideal).
but at the same time upload speed through ordinary windows client(FileZilla) was much higher ~6mb/s.
finally we had tested ftp upload with farmanager which has ability to tune IO buffer size. by using 16k buffer we achieve same 500kb/s limit and than we specify 256kb IO buffer then speed goes up to ~6mb/s
curl upload speed is very sensitive to CURL_MAX_WRITE_SIZE. default 16kb is not enough. i have made custom curl build with increased buffer size upto 256kb and finally problem was resolved.
may be the root of problem is not in this value and only some internal upload pipeline should use increased value.
   
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2015-04-13

These mail archives are generated by hypermail.