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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 25935 invoked from network); 5 May 2020 07:42:33 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 5 May 2020 07:42:33 -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 1jVsDC-0006IT-ED; Tue, 05 May 2020 02:41:54 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jVsD7-0006Fe-30 for ding@lists.math.uh.edu; Tue, 05 May 2020 02:41:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jVsD5-0006vz-2J for ding@lists.math.uh.edu; Tue, 05 May 2020 02:41:48 -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=wLQ5Oc05fI0FQGuEkqNznqYjiL7Zj2w1NBz87nyBilw=; b=foByDsXzJTeF4Zl6OK5WuzZEDA rTNjhPl1nEnYQbCXT+Neq7YE/aobDsHnMWIi2fPFOqVoNXsLn+0BSEPPaNbBL2aUYvvmUwwgNw/eV BjQmZIfv9STx0CYUBgzC0rxc5DBo5b91Id8fqJk0wHNwPxgO+y0ZwI8BNP/q5ShVC/ww=; Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jVsCx-0003IE-Uj; Tue, 05 May 2020 09:41:42 +0200 Received: by mail-wr1-x42a.google.com with SMTP id y3so1496418wrt.1; Tue, 05 May 2020 00:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=wLQ5Oc05fI0FQGuEkqNznqYjiL7Zj2w1NBz87nyBilw=; b=o/2MzRFovTk+WnjdvzHZBHchOoCtKOYZJhO6lu5RCRHtsk6vThBIsFoeoEuyc/whBf iYtov8CIA0+HjWg6kOEsKgf0c0khTIVynxb5PZaxEhXJsmKisLy7ZcZK+jTBGDPKilS2 fNRKUrrYos6OWt/rpJQGDzWznFqbrwq6Zl9Y1As6kVZSZye3OtrF2XC345FBgx8RmOrf Svo6H6zkpTJ+2FqVPuDNH2ZcVf+ISKBXILDJtzu/DIfSFRka2pXF2CYvYHuvEa4zq100 8BiXdC7x03m8i9zI2ZnMASQRib9aPKC1CVOr35SzDEdcqCxVVD8gQGlZfPPbAk6gdamH IJMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=wLQ5Oc05fI0FQGuEkqNznqYjiL7Zj2w1NBz87nyBilw=; b=P4E54+qFSemlfNk0sYRTnSQJYUtgwz19hKTTbkcbKoIQtkShpEyo2IkCyNn350svtz JLQ4Cd6ag2d6g8ziuxFKfWGLu5MvXJiyoa1R7NzmoSvCfAAjWXfydAdaFL5Ipa1no2p7 Zk97LOJgmNOY70VeqY7RqX0Aw/kgDkOF/WvJWwi/qEUxswkptU5sdlf4j6hQ8CEhhVqn DQabisat0VKs9q2UD1EOv8Ht08hbA3I/GwLAnd8d38CsjKkgJxhAuQ5l8FRj6pdvBmbA 5AuDJpjKcsY3CwbFQUX/8rDPm8yFdXiudie77XeTpDTijCEvmMM7hL5TwlEtILcr+vd6 qUbA== X-Gm-Message-State: AGi0PuZB21cdV/CC/tN6WTiKrPKvtBZdmIFNx/VxVypIby0c/REn84j1 XLAt9EXptvRIDfpSTOaQeWF11J6+bQo= X-Google-Smtp-Source: APiQypLq3n5c0oIKB+xj+XzqHFAMijwXsCcCP8vVFsH6yhvhV8fqw9vsUjg7NWXJh2K+gW9rSGLGGQ== X-Received: by 2002:adf:f7d2:: with SMTP id a18mr2052875wrq.169.1588664498675; Tue, 05 May 2020 00:41:38 -0700 (PDT) Received: from rpluim-mac (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id a1sm1684784wrn.80.2020.05.05.00.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 00:41:37 -0700 (PDT) From: Robert Pluim To: Lars Ingebrigtsen Cc: Eric Abrahamsen , Christian Barthel , ding@gnus.org Subject: Re: new wifi connection = nntp timeout = Emacs restart?, Re: new wifi connection = nntp timeout = Emacs restart? References: <87sgh3coxn.fsf@ericabrahamsen.net> <87y2qcbp45.fsf@ericabrahamsen.net> <87pnbjwy5y.fsf@gnus.org> <874ksvodwm.fsf@ericabrahamsen.net> <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> <874ksvodwm.fsf@ericabrahamsen.net> <87eerzwpdo.fsf@gnus.org> Gmane-Reply-To-List: yes Date: Tue, 05 May 2020 09:41:35 +0200 In-Reply-To: <87eerzwpdo.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 04 May 2020 20:01:39 +0200, Mon, 04 May 2020 11:47:46 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk >>>>> On Mon, 04 May 2020 20:01:39 +0200, Lars Ingebrigtsen said: Lars> https://gnutls.org/manual/gnutls.html#index-gnutls_005fheartbeat_= 005fping Lars> There's a TLS layer ping! Yes. It caused HeartBleed :-) Lars> Could we somehow use that for something fun? Like, for instance,= have Lars> nnimap (etc) send an asynchronous ping before a command, and if t= here is Lars> no response to the ping, reconnect and retry? That would be some= thing Lars> that could work on for all the different protocols, so we wouldn'= t have Lars> to implement this all over the place. That could work. 1 ping with a 500ms timeout? Or do we need 2 for those firewalls that will drop the first one? Would adding something like (unless (gnutls-ping (get-buffer-process (nnimap-buffer))) (delete-process (get-buffer-process (nnimap-buffer)))) to nnimap-send-command be enough? Eric> So I built with your diff, removed my dbus rule closing servers on Eric> sleep, restarted Emacs, opened Gnus and connected to nntp, slept = the Eric> laptop, switched locations, opened up, and everything reconnected Eric> perfectly on first refresh, I didn't even need the one-time "g" t= hat the Eric> dbus rule was there to solve. So I think that indicates the direction we need to go in. I=CA=BCm not sure whether (ab)using tcp keepalive is better than Lars' idea, we'll have to test both. Robert