Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Robert Pluim <rpluim@gmail.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>,
	 Christian Barthel <bch@online.de>,
	 ding@gnus.org
Subject: Re: new wifi connection = nntp timeout = Emacs restart?
Date: Mon, 20 Apr 2020 11:24:04 -0700	[thread overview]
Message-ID: <87v9lu2eyj.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <m2368yxid4.fsf@gmail.com> (Robert Pluim's message of "Mon, 20 Apr 2020 17:54:47 +0200")

Robert Pluim <rpluim@gmail.com> writes:

>>>>>> On Mon, 20 Apr 2020 08:45:06 -0700, Eric Abrahamsen <eric@ericabrahamsen.net> said:
>
>     Eric> Andreas Schwab <schwab@linux-m68k.org> writes:
>     >> On Apr 19 2020, Eric Abrahamsen wrote:
>     >>
>     >>> I just started watching Emacs' nntp connections, and immediately noticed
>     >>> that closing all servers ("z")
>     >>
>     >> Why do you think that gnus-group-suspend closes servers?
>     >> gnus-close-all-servers does.
>
>     Eric> Because gnus-group-suspend literally includes all the code in
>     Eric> gnus-close-all-servers...
>
> It even says:
>
>     ;; Closing all the backends is useful (for instance) when when the
>     ;; IP addresses have changed and you need to reconnect.

Okay, progress! Glad I'm inflicting this on all of you in the group,
rather than embarrassing myself in a bug report.

First of all, refreshing Gnus after moving to a new wifi network showed
the nntp connection going from this:

tcp 0 0 192.168.1.39:42194 159.69.161.202:nntp users:(("emacs",pid=143327,fd=18)) timer:(keepalive,94min,0)

to this:

tcp 0 1558 192.168.1.39:42194 159.69.161.202:nntp users:(("emacs",id=143327,fd=18)) timer:(persist,4.800ms,3)

Dunno if that means anything!

But left-behind nntp connections don't seem to be the source of the
problem: Once Gnus fails to reconnect, and I hit "g" again, all the old
connections are killed. (FWIW, I'm still pretty sure it's a bug that
gnus-suspend and close-servers don't kill the nntp connection, there
should never be more than one per server.) So my original hunch was
wrong, as most of my hunches seem to be.

Edebugging `nntp-open-connection', it turns out the condition-case, with
nnheader-report in the error clause, was swallowing real errors -- it
never occurred to me to ask the nntp server for its "report string". The
first error I saw was:

nntp-with-open-group-function: Wrong type argument: stringp, nil

which is my favorite Gnus error. i'm not sure where that came from. The
real problem seems to be:

(error "news.gmane.io/nntp Temporary failure in name resol...")

And I think that's our culprit! The DNS lookup fails, and continues to
fail until I restart Emacs. So I'm assuming Emacs has some sort of dns
caching going on, or something, that presumably we could flush if we
wanted to.

I'm going to leave this here for a day or two, then open a proper bug
report.

E


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

Thread overview: 67+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16 17:37 Eric Abrahamsen
2020-04-17 11:46 ` Eric S Fraga
2020-04-17 12:20   ` Gijs Hillenius
2020-04-17 12:26     ` Andreas Schwab
2020-04-17 14:51       ` Eric Abrahamsen
2020-04-17 15:38         ` David Engster
2020-04-17 16:35           ` Eric Abrahamsen
2020-04-19  6:37 ` Christian Barthel
2020-04-19 17:32   ` Eric Abrahamsen
2020-04-19 18:02     ` Robert Pluim
2020-04-19 21:23       ` Eric Abrahamsen
2020-04-19 22:10       ` Eric Abrahamsen
2020-04-20  4:54         ` Eric Abrahamsen
2020-04-20  7:40         ` Andreas Schwab
2020-04-20 15:45           ` Eric Abrahamsen
2020-04-20 15:54             ` Robert Pluim
2020-04-20 18:24               ` Eric Abrahamsen [this message]
2020-04-21  8:36                 ` Alberto Luaces
2020-04-21 15:53                   ` Eric Abrahamsen
2020-04-22  7:37                     ` Alberto Luaces
2020-04-22  8:28                       ` Alberto Luaces
2020-04-30  5:26       ` Lars Ingebrigtsen
2020-04-30 17:34         ` Eric Abrahamsen
2020-04-30 21:49           ` Lars Ingebrigtsen
2020-04-30 22:11             ` Eric Abrahamsen
2020-05-04 12:53               ` Robert Pluim
2020-05-04 13:13                 ` Andreas Schwab
2020-05-04 13:33                   ` Robert Pluim
2020-05-04 14:35                     ` Andreas Schwab
2020-05-04 14:46                       ` Robert Pluim
2020-05-04 15:10                         ` Andreas Schwab
2020-05-04 16:29                           ` Robert Pluim
2020-05-04 14:51                 ` Lars Ingebrigtsen
2020-05-04 16:13                   ` Robert Pluim
2020-05-04 16:36                     ` Eric Abrahamsen
2020-05-04 17:21                       ` Robert Pluim
2020-05-04 18:01                         ` Lars Ingebrigtsen
2020-05-05  7:41                           ` new wifi connection = nntp timeout = Emacs restart?, " Robert Pluim
2020-05-05  8:19                             ` Lars Ingebrigtsen
2020-05-05 11:55                               ` Robert Pluim
2020-05-19 13:34                                 ` Lars Ingebrigtsen
2020-05-19 13:36                                 ` Lars Ingebrigtsen
2020-05-04 18:47                         ` Eric Abrahamsen
2020-05-04 15:38                 ` Eric Abrahamsen
2020-05-04 16:28                   ` Robert Pluim
2020-04-30 17:38         ` Eric Abrahamsen
2020-04-30 21:51           ` Lars Ingebrigtsen
2020-04-30 22:26             ` Eric Abrahamsen
2020-04-30 22:28               ` Lars Ingebrigtsen
2020-04-30 22:39                 ` Eric Abrahamsen
2020-04-30 22:55                   ` Lars Ingebrigtsen
2020-04-30 23:13                     ` Eric Abrahamsen
2020-04-30 23:23                       ` Lars Ingebrigtsen
2020-05-01  9:46                         ` David Engster
2020-05-01 10:35                           ` David Engster
2020-05-01 17:29                             ` Eric Abrahamsen
2020-05-01 20:51                               ` David Engster
2020-05-02  0:33                                 ` Eric Abrahamsen
2020-05-02 10:20                                   ` David Engster
2020-05-02 15:13                                     ` Eric Abrahamsen
2020-05-02 16:50                                       ` David Engster
2020-05-02 19:07                                         ` Eric Abrahamsen
2020-05-19 13:23                                           ` Lars Ingebrigtsen
2020-05-21  0:45                                             ` Eric Abrahamsen
2020-06-26  9:38                                               ` Lars Ingebrigtsen
2020-08-21 20:47                             ` Eric Abrahamsen
2020-05-01 18:06                         ` 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

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

  git send-email \
    --in-reply-to=87v9lu2eyj.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=bch@online.de \
    --cc=ding@gnus.org \
    --cc=rpluim@gmail.com \
    --cc=schwab@linux-m68k.org \
    /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.
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 NNTP newsgroup(s).