gnutls_record_recv timeout with blocking sockets
nmav at gnutls.org
Mon May 23 16:43:01 CEST 2011
On 05/22/2011 10:32 PM, Giuseppe Scrivano wrote:
> In wget we are using something like the following pseudo-code to
> check if a call to `gnutls_record_recv' will be blocking:
> gnutls_record_check_pending (session) || select_fd (fd, timeout);
> I have noticed that even if the previous code returns a non-zero value,
> `gnutls_record_recv' can still block.
Could you distinguish which was the function that triggered the
recv, (i.e. gnutls_record_check_pending() or select_fd()?).
If it was gnutls_record_check_pending() then it is a bug as it
would have returned you the pending data.
More information about the Gnutls-devel