curl-library
Re: connection status
Date: Fri, 24 Feb 2006 22:54:58 +0100 (CET)
On Fri, 24 Feb 2006, Barry Baker wrote:
> I am implementing a layer (command line and API) on top of libcurl that
> provides for persistent FTP connections and I have a question regarding
> server timeouts. I had written some code to take and easy handle and add it
> to a multi handle, then use muli_perform, so that I could get at the
> underlying FTP control socket using curl_multi_fdset. I then used a
> combination of select() and read() to detect a server timeout of the FTP
> connection. This worked fine until we started using the SSL support, at
> which point by doing the combination of the select() and read() we left the
> socket in a bad state, causing curl to just restart a new connection on a
> subsequent command and causing a server timeout to never be detected.
>
> Is there an easier way to do this?
Over SSL I seriously doubt you can do this in any simple way, without
involving some kind of underlying SSL-library (OpenSSL or GnuTLS) magic.
Why do you need to detect the server timeout at all?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-02-24