Subject: bug#22493: 25.1.50; open-gnutls-stream doesn't respect :nowait, so the connections are synchronous

From: Lars Ingebrigtsen <[email-masked]>
Date: Mon, 01 Feb 2016 00:17:10 +0100

Eli Zaretskii <[email-masked]> writes:

> Like I wrote elsewhere, I don't understand what this gives us.  The
> sentinel runs in the main thread, so you still wait for the GnuTLS
> handshake to complete.  Right?

It depends on what you mean by "you".  :-)  If you go to a web page that
includes <img>, Emacs will pause while doing DNS lookups (for non-TLS
images) and the entire DNS lookup/connection/TLS negotiation cycle (for
TLS connections).  Having Emacs stop randomly while you're doing
something is rather annoying.

Both the connection and the TLS negotiation happens on the idle thread,
of course, so there will still be hangs, but they are much shorter than
the entire cycle.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no