[vlc-devel] [PATCH] gnutls: retry handshake if it returns a non-fatal error
Rafaël Carré
funman at videolan.org
Thu Feb 7 16:57:40 CET 2013
Le 07/02/2013 16:46, Jean-Baptiste Kempf a écrit :
> On 07 Feb, Rafaël Carré wrote :
>> Le 07/02/2013 16:08, Ludovic Fauvet a écrit :
>>> Based on the gnutls_handshake manual the function must be called again
>>> until it returns 0 (or a fatal error).
>>
>> The non-fatal errors such as `GNUTLS_E_AGAIN' and
>> `GNUTLS_E_INTERRUPTED' interrupt the handshake procedure, which
>> should be later be resumed. Call this function again, until it
>> returns 0; cf. `gnutls_record_get_direction()' and
>> `gnutls_error_is_fatal()'.
>>
>> But we already return when meeting those non-fatal errrors.
>
> There are other non-fatals errors that are not those 2.
Hm ok it looks good then.
The manual is confusing (why put these 2 on the same line?)
Sorry,
More information about the vlc-devel
mailing list