cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Q: about SSL_connect and sockfd in lib/ssluse.c

From: Alexander Lazic <al-curllibrary_at_none.at>
Date: Thu, 5 May 2005 19:43:53 +0200

On Don 05.05.2005 13:33, Daniel Stenberg wrote:
>On Thu, 5 May 2005, Alexander Lazic wrote:
>
>>How about to set the socket to blocking an then call SSL_connect?
>
>Sorry, but that would be to move in the totally wrong direction. The
>general plan is to completely get rid of all blocking functions, and
>that requires non-blocking sockets.

Hm, ok i'am look forward to such solutions.

>The Correct Fix (tm) implies making sure that the function returns
>immediately intead of looping and then having another function that
>checks for completeness, so that multi.c can use that and have a
>separate state for SSL connecting. That would then allow apps to use
>the multi interface without "hanging" during the SSL connect phase.

I think you are right, have you plans to add these feature?!

Greetings

al ;-)
Received on 2005-05-05