cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [SFTP] Problem: libSSH2 is slow

From: Jonas Schnelli <jonas.schnelli_at_include7.ch>
Date: Thu, 24 May 2012 14:16:27 +0200

Hi

>
> Any idea if its faster than openssh's sftp?

No. It will normally (depends on your environment) perform slower then the openssh's sftp client (with standard libcurl i normally stuck on 800kb/s while performing 5.5MB/s with sftp client from openssh).
Quick, nasty fix for low latency high traffic networks (like 100mbit < 20ms ping) is to build curl with CURL_MAX_WRITE_SIZE around 512kb (try different variants from 256k to 2MB).

Read also here:
http://curl.haxx.se/mail/lib-2011-11/0204.html

Nobody (as far as i know) has already taken actions to writes patches for libcurl / libssh2 to gain a better sftp performance.
It's on my list "needs to be done in life", .. but currently not on the top. :)

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-24