bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#40665: 28.0.50; tls hang on local ssl


From: Derek Zhou
Subject: bug#40665: 28.0.50; tls hang on local ssl
Date: Wed, 22 Apr 2020 12:25:59 +0000 (UTC)
User-agent: mu4e 1.2.0; emacs 27.0.91

Robert Pluim writes:

>>>>>> On Tue, 21 Apr 2020 22:29:30 +0000 (UTC), Derek Zhou <derek@3qin.us> 
>>>>>> said:
>
>     Derek> Version 3, add safty guard for tls read detection. Please use this 
> one.
>     Derek> You may want to review this carefully.
>
> I haven't tested it yet, but what about wait_proc?
>
I don't quite understand the wait_proc business. The idea of the patch
is to detect that out of all the fds that are going to be selected, how
many are gnutls managed and are ready from the gnutls buffer? If the
answer is positive, we skip the select and pretend the select return
those fds only. I think this is safe; because it is one of the possible
and legal return of the select, wait_proc or not.

Another way is to still do a zero timeout select, and merge the gnutls
ready set with the select ready set. It is more intrusive but probably
closer to the original intent of the code. I can write the path that way
if you want.

Derek





reply via email to

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