Menu

#703 sftp does not keep connections alive

closed-fixed
SCP/SFTP (19)
3
2013-06-21
2007-10-31
Bryan T
No

RHEL 5 box
Uname -a:
2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

curl --version:
curl 7.17.1 (x86_64-unknown-linux-gnu) libcurl/7.17.1 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 libssh2/0.17

I have a curl program that takes a uri and grabs a file and then leaves the connection open to grab another file. When my uri is ftp this works as expected. However, when my uri is a sftp (the rest of the uri is exactly the same) the connection is dropped when any file is grabbed.

I read a posting that someone else posted this and the reply was that this was a bug. The mailing list http://curl.haxx.se/mail/curlpython-2007-10/0005.html and http://curl.haxx.se/mail/lib-2007-09/0229.html are both having the same issues.

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2007-11-03
    • priority: 5 --> 3
     
  • Daniel Stenberg

    Daniel Stenberg - 2007-11-04

    Logged In: YES
    user_id=1110
    Originator: NO

    Agreed, I can easily repeat the problem...

     
  • Daniel Stenberg

    Daniel Stenberg - 2007-11-05

    Logged In: YES
    user_id=1110
    Originator: NO

    The problem is identified and I posted about it to the curl-library list just now, see:

    http://curl.haxx.se/mail/lib-2007-11/0040.html

     
  • Daniel Stenberg

    Daniel Stenberg - 2007-11-08
    • status: open --> closed-fixed
     
  • Daniel Stenberg

    Daniel Stenberg - 2007-11-08

    Logged In: YES
    user_id=1110
    Originator: NO

    Thanks for the report.

    I did a pretty major overhaul of the code and I've committed that now, and persistent connections work fine for me in my tests with both SCP and SFTP. Do try the CVS version or tomorrow's daily snapshot if you want to verify.