[gnutls-help] Truly non-blocking example of gnutls usage

Alex Bligh alex at alex.org.uk
Thu Apr 14 11:29:16 CEST 2016

On 14 Apr 2016, at 10:09, Nikos Mavrogiannopoulos <nmav at gnutls.org> wrote:

> Note that the limitation of select is on the actual fd value, not on
> the number of fds. I happened to have a select() call with 2 input fds
> and had occasional crashes to my program. The culprit was that overall
> the program had many open fds and this particular code although it was
> using 2 fds, they often happened to be over 1024.
> Note that this is not really about your example. I just wanted to rant
> about it :) After my experience I've already convinced the manpages
> maintainer to add a strong language against select() early in the man
> page.

Indeed. This is why, on reflection, it's probably worth me fixing it.

Alex Bligh

More information about the Gnutls-help mailing list