[vlc-devel] [PATCH] gnutls: retry handshake if it returns a non-fatal error
Jean-Baptiste Kempf
jb at videolan.org
Thu Feb 7 16:46:45 CET 2013
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.
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel
mailing list