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: Wed, 25 May 2011 23:00:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Nikos Mavrogiannopoulos <address@hidden> writes:

> Then, as Sam mentioned, there is not much gnutls can do. That could
> be either because of the bugs mentioned by Sam, or because gnutls is
> blocked waiting for a TLS record. The ways to avoid this would be
> either by using non-blocking sockets or by having a timeout in the
> recv function provided to gnutls.

AFAICS, it wouldn't work with non-blocking sockets; while you can
respect the timeout, it will break any time consecutive `read' don't
have enough data to consume.  I guess the latter is the only reasonable
solution.

Cheers,
Giuseppe



reply via email to

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