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-3517451 ] cURL with sftp strange behaviour after connection drop

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 06 May 2012 15:20:55 -0700

Bugs item #3517451, was opened at 2012-04-13 03:21
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3517451&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SCP/SFTP
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Daniel Theron (blackcat101)
Assigned to: Daniel Stenberg (bagder)
Summary: cURL with sftp strange behaviour after connection drop

Initial Comment:
Hi there,

Not sure if its the right place to log this ticket because it seems to be the libssh2 package affecting cURL.

I created a 70mb file and transferred it using the command below:
curl --connect-timeout 1 --retry 1 -# -k -u athed:Helpme12 -T file14 sftp://172.21.2.232/

The file sftp speed was about 2 seconds per 10% completion while transferring (+- 20 seconds for 100% completion)

When a connection drop occurred while transferring, cURL's progress bar paused. When the connection came up again, cURL resumed the transfer but the transfer speed changed to a slower speed of +- 5 seconds per 10% completion.

Hope you will be able to duplicate this strange occurance. I was able to duplicate this everytime :)

 $ uname -a
SunOS V240-rd-2 5.10 Generic_147440-12 sun4u sparc SUNW,Sun-Fire-V240

$ curl --version
curl 7.25.0 (sparc-sun-solaris2.10) libcurl/7.25.0 OpenSSL/1.0.1 zlib/1.2.6 libidn/1.24 libssh2/1.4.1
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

Thanks,
Daniel

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2012-05-06 15:20

Message:
This sounds like a libssh2 problem. Any chance you can try to repeat this
strangeness with a libssh2 example code and then take the problem to the
libssh2-devel if it remains?

It could be related to the "read-ahead" system libssh2 is using with SFTP.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3517451&group_id=976
Received on 2012-05-07

These mail archives are generated by hypermail.

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

File upload with ASP.NET