Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Robert Pluim <rpluim@gmail.com>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
	 Christian Barthel <bch@online.de>,
	ding@gnus.org
Subject: Re: new wifi connection = nntp timeout = Emacs restart?
Date: Mon, 04 May 2020 09:36:41 -0700	[thread overview]
Message-ID: <874ksvodwm.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <m2mu6n4r0a.fsf@gmail.com> (Robert Pluim's message of "Mon, 04 May 2020 18:13:57 +0200")

Robert Pluim <rpluim@gmail.com> writes:

>>>>>> On Mon, 04 May 2020 16:51:53 +0200, Lars Ingebrigtsen
> <larsi@gnus.org> said:
>
>     Lars> Robert Pluim <rpluim@gmail.com> writes:
>     >> Also, I see this when coming out of sleep and connecting to the same
>     >> wifi network, with the same IP, and the same DNS server, which I guess
>     >> implicates Emacs more.
>
>     Lars> It's unlikely to be something on your machine that's the
>     Lars> problem. It's
>     Lars> unfortunately common for routers/firewalls to eject the
>     Lars> apparently dead
>     Lars> connection from their routing tables, and when a new packet arrives
>     Lars> on that connection, it'll just discard it (instead of sending a RST
>     Lars> packet to you).  The result is a hanging connection.
>
> And no doubt they'll have some crappy justification for doing
> it. <sigh>
>
>     Lars> In my experience, this is quite common for the NAT routers
>     Lars> ISPs use in
>     Lars> front of your home, and less common for the firewalls that's close to
>     Lars> the server.
>
> Iʼve just sledgehammered in tcp-keepalives at 1 second intervals into
> make-network-process, and that at least makes the detection of the
> failed connection fast.
>
> Eric, are you on GNU/Linux? I can cook up a patch for that platform to
> try if you want.

Yes, I'm on arch linux. I'd be happy to try this out. I'll be switching
networks later this morning, if you've got something on hand already!

Robert Pluim <rpluim@gmail.com> writes:

>>>>>> On Mon, 04 May 2020 08:38:00 -0700, Eric Abrahamsen
> <eric@ericabrahamsen.net> said:
>     >> Iʼd rather you didnʼt move in that direction. 'make-network-process'
>     >> is low-level plumbing, 'open-network-stream' is what user code should
>     >> be using. What feature is 'open-network-stream' missing for you?
>
>     Eric> Sorry, that was a very poorly-written sentence. What I meant was that
>     Eric> `open-network-stream' *does* use `make-network-process'
>     Eric> internally, and
>     Eric> the hang is happening inside C code, not Lisp code. That was
>     Eric> all I was
>     Eric> trying to say.
>
> OK, had me worried for a second there :-)
>
>     >> Also, I see this when coming out of sleep and connecting to the same
>     >> wifi network, with the same IP, and the same DNS server, which I guess
>     >> implicates Emacs more.
>
>     Eric> I really don't know very much about networking,
>     Eric> unfortunately. I'm just
>     Eric> trying to provide debugging data, possibly leads, baseless
>     Eric> speculation,
>     Eric> and red herrings.
>
> Once upon a time, IP networking was relatively simple, but those days
> are gone now. Red herrings I suspect Iʼd be partial to, Iʼve never
> tried those :-)

When pickled, they're not bad.


  reply	other threads:[~2020-05-04 16:37 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
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 [this message]
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=874ksvodwm.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=bch@online.de \
    --cc=ding@gnus.org \
    --cc=larsi@gnus.org \
    --cc=rpluim@gmail.com \
    /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).