gnutls-devel
[Top][All Lists]
Advanced

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

Re: gnutls_record_recv timeout with blocking sockets


From: Giuseppe Scrivano
Subject: Re: gnutls_record_recv timeout with blocking sockets
Date: Mon, 23 May 2011 19:41:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Nikos Mavrogiannopoulos <address@hidden> writes:

> On 05/22/2011 10:32 PM, Giuseppe Scrivano wrote:
>> Hello,
>> 
>> 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()?).

Sorry that I haven't mentioned it before, `select_fd' triggers the read.

Giuseppe



reply via email to

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