unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Alex Branham <alex.branham@gmail.com>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>, 40676@debbugs.gnu.org
Subject: bug#40676: 28.0.50; gnus locks when reading email
Date: Sat, 18 Apr 2020 12:26:07 +0200	[thread overview]
Message-ID: <m28sitgke8.fsf@gmail.com> (raw)
In-Reply-To: <87k12eowft.fsf@gmail.com> (Alex Branham's message of "Fri, 17 Apr 2020 13:26:30 -0400")

>>>>> On Fri, 17 Apr 2020 13:26:30 -0400, Alex Branham <alex.branham@gmail.com> said:

    Alex> Thanks. I can't reproduce it that way. I don't think I have anything too
    Alex> terribly crazy in my gnus config but I'll try to make time to go through
    Alex> it.

My crystal ball says you have one or more of the gnus-gravatar
variables enabled, and you have a slow DNS, in which case customizing
'gravatar-service' to something other than 'libravatar will help.

(given the troubles the gravatar changes are causing, maybe we should
flip the default away from libravatar for the moment)

    >> What does list-processes display in that situation?

    Alex> Eli, the output of list-processes (removing some non-gnus related stuff) is:

    Alex> *nnimap*        --      open     *nnimap localhost nil  *nntpd** --           Main         (network connection to localhost:imap)
    Alex> dns             --      open     *temp*                   --           Main         (datagram connection to 192.168.1.1:domain)
    Alex> dns<1>          --      open     *temp*-198741            --           Main         (datagram connection to 192.168.1.1:domain)
    Alex> dns<2>          --      open     *temp*-84789             --           Main         (datagram connection to 192.168.1.1:domain)
    Alex> dns<3>          --      open     *temp*-23796             --           Main         (datagram connection to 192.168.1.1:domain)
    Alex> nntpd           --      open     *server news.gmane.io nntp  *nntpd** --           Main         (network connection to news.gmane.io:nntp)
    Alex> server          --      listen  --                        --           Main         (network server on /run/user/1000/emacs/server)

    Alex> At this point, gnus was complaining about the *temp*-23796 buffer
    Alex> process having a running process.

Although looking at the relevant code in dns.el, that should kill the
process unconditionally before killing the buffer, so I donʼt
understand why the process is still hanging around. It does:

          (condition-case nil
              (delete-process process)
            (error nil))

Sledgehammer patch to stop the querying below.

    Alex> I'm not sure if it's related, but recently-ish (after Emacs 26 but
    Alex> before Emacs 27) gnus asks me on every open a question concerning
    Alex> localhost certificates. I select "session".  Here's the output from the
    Alex> message buffer:

    Alex> Opening connection to localhost...
    Alex> Continue connecting? (always, session only, no, details, ?): 
    Alex> Accepting certificate for localhost:imap this session only.

Given that this is your local imap server, I think you can get away
with saying 'always', and the network security manager will stop
prompting.

Robert

diff --git a/lisp/net/dns.el b/lisp/net/dns.el
index 53ea0b19b5..4e0e1d1b0b 100644
--- a/lisp/net/dns.el
+++ b/lisp/net/dns.el
@@ -367,12 +365,13 @@ dns-make-network-process
 	  :coding 'binary
 	  :buffer (current-buffer)
 	  :host server
+          :noquery t
 	  :service "domain"
 	  :type 'datagram)





  reply	other threads:[~2020-04-18 10:26 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16 23:18 bug#40676: 28.0.50; gnus locks when reading email Alex Branham
2020-04-17  6:51 ` Eli Zaretskii
2020-04-17 11:51 ` Basil L. Contovounesios
2020-04-17 17:26   ` Alex Branham
2020-04-18 10:26     ` Robert Pluim [this message]
2020-04-18 11:50       ` Alex Branham
2020-07-19  2:20       ` Lars Ingebrigtsen
2020-07-19  8:15         ` Philip K.
2020-07-19 13:02           ` Lars Ingebrigtsen
2020-07-19 13:37             ` Philip K.
2020-07-19 13:52               ` Lars Ingebrigtsen
2020-07-29  6:48                 ` Lars Ingebrigtsen
2020-07-30  1:43                   ` Lars Ingebrigtsen
2020-07-30  3:30                     ` Lars Ingebrigtsen
2020-07-30  3:11                   ` Richard Stallman
2020-07-30  8:32                     ` Philip K.
2020-07-31  3:24                       ` Richard Stallman
2020-07-20  8:49             ` Robert Pluim
2020-07-20  9:05               ` Lars Ingebrigtsen
2020-07-20  9:23                 ` Lars Ingebrigtsen
2020-07-20  9:33                   ` Robert Pluim
2020-07-20  9:36                     ` Robert Pluim
2020-07-20 11:02                       ` Lars Ingebrigtsen
2020-07-20  9:41                     ` Lars Ingebrigtsen
2020-07-20  9:43                       ` Lars Ingebrigtsen
2020-04-17 15:09 ` Eric Abrahamsen
2020-04-17 15:14   ` Robert Pluim
2020-04-17 15:22     ` Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m28sitgke8.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=40676@debbugs.gnu.org \
    --cc=alex.branham@gmail.com \
    --cc=contovob@tcd.ie \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).