From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 23844 invoked from network); 4 May 2020 16:37:01 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 4 May 2020 16:37:01 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jVe5P-0007Vw-Ff; Mon, 04 May 2020 11:36:55 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jVe5M-0007T4-BP for ding@lists.math.uh.edu; Mon, 04 May 2020 11:36:52 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jVe5L-0003e6-0H for ding@lists.math.uh.edu; Mon, 04 May 2020 11:36:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CBmiA5FhjrpcWdSBgw4AxMEJZIeuewx4ZEp7Y6LyF8A=; b=EDhC7MJx5M3nli6IK6QtgV5Aam Y6qHjpuQ9qJCKEUjwQBeUKidBRkI1U44As/qPaOo9F9nMpLkdj6IexAjhsLY/zuwLm6J1gVgUjEgX I9PRlCUcxHgDz9Wipl3CocglwpfvSVAb8HjqVjGRf2kSNSzUo26oM/xJZuYJE7a+oh5U=; Received: from ericabrahamsen.net ([52.70.2.18] helo=mail.ericabrahamsen.net) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVe5E-0001wi-2Z; Mon, 04 May 2020 18:36:46 +0200 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 30299FA08E; Mon, 4 May 2020 16:36:42 +0000 (UTC) From: Eric Abrahamsen To: Robert Pluim Cc: Lars Ingebrigtsen , Christian Barthel , ding@gnus.org Subject: Re: new wifi connection = nntp timeout = Emacs restart? References: <87sgh3coxn.fsf@ericabrahamsen.net> <87o8rogew7.fsf@barthel.ch> <87zhb7mlf0.fsf@ericabrahamsen.net> <87a72t35ng.fsf@gnus.org> <87wo5wev3m.fsf@ericabrahamsen.net> <878sic1w65.fsf@gnus.org> <87y2qcbp45.fsf@ericabrahamsen.net> <87pnbjwy5y.fsf@gnus.org> Date: Mon, 04 May 2020 09:36:41 -0700 In-Reply-To: (Robert Pluim's message of "Mon, 04 May 2020 18:13:57 +0200") Message-ID: <874ksvodwm.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk Robert Pluim writes: >>>>>> On Mon, 04 May 2020 16:51:53 +0200, Lars Ingebrigtsen > said: > > Lars> Robert Pluim writes: > >> Also, I see this when coming out of sleep and connecting to the sa= me > >> wifi network, with the same IP, and the same DNS server, which I g= uess > >> 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 arr= ives > 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. > > 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 cl= ose to > Lars> the server. > > I=CA=BCve 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 writes: >>>>>> On Mon, 04 May 2020 08:38:00 -0700, Eric Abrahamsen > said: > >> I=CA=BCd rather you didn=CA=BCt move in that direction. 'make-netw= ork-process' > >> is low-level plumbing, 'open-network-stream' is what user code sho= uld > >> be using. What feature is 'open-network-stream' missing for you? > > Eric> Sorry, that was a very poorly-written sentence. What I meant wa= s 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 sa= me > >> wifi network, with the same IP, and the same DNS server, which I g= uess > >> 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=CA=BCd be partial to, I=CA=BCve ne= ver > tried those :-) When pickled, they're not bad.