help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Joe Shaw
Subject: Re: [Help-gnutls] gnutls_bye(), return values, and looping
Date: Sun, 01 Feb 2004 15:47:11 -0500

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?

Thanks,
Joe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]