bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] gnutls_handshake can return GNUTLS_E_INTERRUPTED


From: Daniel Stenberg
Subject: Re: [Bug-wget] gnutls_handshake can return GNUTLS_E_INTERRUPTED
Date: Fri, 1 Jul 2016 09:40:55 +0200 (CEST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

On Fri, 1 Jul 2016, Tim Ruehsen wrote:

GNUTLS_E_INTERRUPTED is returned if the process got a signal that interrupts blocking I/O (for wget this is SIGUSR1 and SIGHUP). If it is just *one* signal (very likely), a successive call to gnutls_handshake() would not return again with this value. If the process gets 'hammered' by signals, we have a busy-loop. But with your change, the poll/wait would also immediate return with errno=EINTR - and we have a busy-loop as well.

So from what I can judge, your change adds 'complexity' without any gain.

You're free to do what you want with it. I think it follows the spirit of the documentation.

--

 / daniel.haxx.se



reply via email to

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