curl-users
Bug in sftp timeout detection.
From: Skrzyniarz Alexandre <alexandre.skrzyniarz_at_fr.thalesgroup.com>
Date: Thu, 4 Nov 2010 09:35:46 +0100
Date: Thu, 4 Nov 2010 09:35:46 +0100
Hello. We found this little issue with curl:
Timeout setting with -Y and -y options doesn't work with sftp protocol.
curl --version
curl 7.21.2 (i686-pc-linux-gnu) libcurl/7.21.2 OpenSSL/0.9.7a
zlib/1.2.1.2 libidn/0.5.6 libssh2/1.1 Protocols: dict file ftp ftps
gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp
smtps telnet tftp Features: IDN IPv6 Largefile NTLM SSL libz
Error reproduction:
install a sftp server, and use curl as such:
curl -y 10 -Y 1 --connect-timeout 10 -o /dest/file -m 1200 -u
user:password sftp://server//from//file.txt
unplug the network cable: no timeout.
note: when transfering the same file via http, timeout works.
-- Alexandre SKRZYNIARZ, PhD. [EXPERTS] Domain Design Authority, Radar & Warfare Systems. THALES AIRBORNE SYSTEMS 10 Av 1ere DFL, 29200 BREST, France email: alexandre.skrzyniarz_at_fr.thalesgroup.com ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-11-04