cURL / Mailing Lists / curl-library / Single Mail

curl-library

AW: SCP/SFTP and persistency, bug #1823487

From: Enrico Stark <Enrico.Stark_at_bsgclearing.com>
Date: Wed, 28 Nov 2007 06:30:14 -0600

Hi Daniel,

I tried yesterday snapshot (libcurl 7.17.2-20071127) for a short test for protocols ftp, sftp and scp for uploading.
Ftp and sftp work fine, but I have a question on scp, sometimes the connection is reused and sometimes not, see below ...

I changed machine name, IP and key filename to some fake numbers

* About to connect() to machine1 port 22 (#0)
* Trying 111.111.111.111... * connected
* Connected to machine1 (111.111.111.111) port 22 (#0)
* SSH authentication methods available: publickey
* Using ssh public key file mykey.pub
* Using ssh private key file mykey
* Initialized SSH public key authentication
* Authentication complete
* SSH CONNECT phase done
* Channel failed to close
* Connection #0 to host machine1 left intact
Speed: 862.000 bytes/sec during 0.881 seconds
* Connection #0 seems to be dead!
* Closing connection #0
* About to connect() to machine1 port 22 (#0)
* Trying 111.111.111.111... * connected
* Connected to machine1 (111.111.111.111) port 22 (#0)
* SSH authentication methods available: publickey
* Using ssh public key file mykey.pub
* Using ssh private key file mykey
* Initialized SSH public key authentication
* Authentication complete
* SSH CONNECT phase done
* Channel failed to close
* Connection #0 to host machine1 left intact
Speed: 2872.000 bytes/sec during 0.623 seconds
* Re-using existing connection! (#0) with host machine1
* Connected to machine1 (111.111.111.111) port 22 (#0)
* Channel failed to close
* Connection #0 to host machine1 left intact
Speed: 4969.000 bytes/sec during 0.360 seconds
* Re-using existing connection! (#0) with host machine1
* Connected to machine1 (111.111.111.111) port 22 (#0)
* Channel failed to close
* Connection #0 to host machine1 left intact
Speed: 8412.000 bytes/sec during 0.213 seconds
* Re-using existing connection! (#0) with host machine1
* Connected to machine1 (111.111.111.111) port 22 (#0)
* Channel failed to close
* Connection #0 to host machine1 left intact
Speed: 46183.000 bytes/sec during 0.331 seconds
* Re-using existing connection! (#0) with host machine1
* Connected to machine1 (111.111.111.111) port 22 (#0)
* Channel failed to close
* Connection #0 to host machine1 left intact
Speed: 3148.000 bytes/sec during 0.329 seconds
* Re-using existing connection! (#0) with host machine1
* Connected to machine1 (111.111.111.111) port 22 (#0)
* Channel failed to close
* Connection #0 to host machine1 left intact
Speed: 4431.000 bytes/sec during 0.234 seconds
* Connection #0 seems to be dead!
* Closing connection #0
* About to connect() to machine1 port 22 (#0)
* Trying 111.111.111.111... * connected
* Connected to machine1 (111.111.111.111) port 22 (#0)
* SSH authentication methods available: publickey
* Using ssh public key file mykey.pub
* Using ssh private key file mykey
* Initialized SSH public key authentication
* Authentication complete
* SSH CONNECT phase done
* Channel failed to close
* Connection #0 to host machine1 left intact
Speed: 1471.000 bytes/sec during 0.705 seconds
* Re-using existing connection! (#0) with host machine1
* Connected to machine1 (111.111.111.111) port 22 (#0)
* Channel failed to close

-----Ursprüngliche Nachricht-----
Von: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se] Im Auftrag von Daniel Stenberg
Gesendet: Montag, 26. November 2007 23:12
An: libcurl development
Betreff: Re: SCP/SFTP and persistency, bug #1823487

On Mon, 26 Nov 2007, Immanuel Gregoire wrote:

> Hey Daniel, i took today's snapshot and it is doing very well on all
> of my cases.

Cool and thanks!

> But do consider that my application uses only FTP and SFTP. And only
> downloading. For now. So i can't tell about the other protocols and
> FTP uploading.

Yes sure, but I hope that there's at least one or two other guys who'll use the CVS version before the next release. Or else we'll just have to trust that our tests cover enough and I am certain that people will tell us when the next release gets out if they were incomplete! ;-)

--
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-11-28