cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] polarssl: fix possible handshake timeout issue in multi.

From: Gaël PORTAY <gael.portay_at_gmail.com>
Date: Wed, 19 Mar 2014 16:33:21 +0100

On 19 March 2014 16:10, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Wed, 19 Mar 2014, Gaël PORTAY wrote:
>
> Because of the socket is unblocking, PolarSSL does need call to getsock
>> to get the action to perform in multi environment.
>>
>> In some cases, it might happen we have not received yet all data to
>> perform the handshake. ssh_handshake returns POLARSSL_ERR_NET_WANT_READ,
>> the state is updated but because of the getsock has not the proper #define
>> macro to, the library never prevents to select socket for input thus the
>> socket will never be awaken when last data is available. Thus it leads to
>> timeout.
>>
>
> Thanks, merged and pushed!
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

I saw :)

If I can be helpful

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-19