curl-library
Re: SFTP and multi interface
Date: Fri, 08 Jan 2010 12:14:41 +0100
Gil Weber a écrit :
> Hi All,
> I am facing a problem using SFTP protocol and multi interface.
> I have done a simple program (based multi-single.c example of website)
> which create an easy handle and add it to the multi interface.
> Connection seems to be OK but when I call the function
> "curl_multi_fdset", no file descriptor is set even if the connection
> is opened (maxfd = -1). This append only during connection
> initialization, once the file is ready to be sent, fd_set are
> correctly initilized (as I have a timeout on select so I can go
> further into the process, but is is very slow because
> "curl_multi_perform" is not called as often as it would be). If I use
> the same program but with an other protocol (I changed only the URL),
> it work !
> Is there a bug in the library ? or am I doing something wrong ?
>
> Here is my version info :
> curl 7.19.7 (powerpc-603e-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8g
> zlib/1.2.3 libssh2/1.2.2
> Protocols: ftp http https ftps scp sftp
> Features: Largefile NTLM SSL libz
>
> Thanks in advance,
> Gil Weber
>
Another issue that I found that may be related to this problem. At the
end on my process I remove the easy handle from the multi interface and
then, I clean it up. The problem is that the socket is not closed ! And
if I do a netstat it is already in established state. It is only closed
if I call "curl_multi_cleanup" function.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-01-08