Re: Q: about SSL_connect and sockfd in lib/ssluse.c
Date: Thu, 5 May 2005 12:37:29 +0200 (CEST)
On Thu, 5 May 2005, Alexander Lazic wrote:
> I try to add some 'SSL-Timeings' around SSL_connect but for me the
> blocking-mode for 'sockfd' isn't clear.
> I have try to find out the blocking-mode of 'sockfd' but i'am not sure, is
> the sockfd in non-blocking or in blocking state, at the moment when
> SSL_connect is called?!
The sockets are always set nonblocking when used within libcurl.
That's also the reason for the while() loop for the OpenSSL connect.
(And the loop itself is not very nice since it makes the function blocking,
even when used from the multi interface...)
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-05-05