[Help-gnutls] gnutls_bye(), return values, and looping

Joe Shaw joe at ximian.com
Sun Feb 1 21:47:11 CET 2004

On Sun, 2004-02-01 at 15:09, Nikos Mavroyanopoulos wrote:
> GNUTLS_E_AGAIN is returned because the underlying layer (recv or send)
> returned EAGAIN. gnutls does not use this error value.

Ok, recv(2) says that EAGAIN would be returned if the socket was
nonblocking (which it is) and there are no messages to be read.  Is it
safe then to ignore the GNUTLS_E_AGAIN value (and therefore check only
GNUTLS_E_INTERRUPTED) and then close the file descriptor?  Are the
examples in the docs correct in ignoring the return values?


More information about the Gnutls-help mailing list