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 21312 invoked from network); 5 May 2020 11:55:34 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 5 May 2020 11:55:34 -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 1jVwAe-0008Ie-2n for ml@inbox.vuxu.org; Tue, 05 May 2020 06:55:32 -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 1jVwAb-0008IU-SR for ding@lists.math.uh.edu; Tue, 05 May 2020 06:55:29 -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 1jVwAa-0006HJ-5i for ding@lists.math.uh.edu; Tue, 05 May 2020 06:55:29 -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 :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:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yF8hONewYK6c+Rovee74EA+6uV4mVL59K2k/c3i0JEU=; b=chIKYGDWaq3yRpFlu8PPwUo9Q0 H6eaYjBc01sRdT1wCBkXDJdeVmKWbz8hjLOOkShYcm3t2q8opRBBymOpViqelfOMYTqpoIK5MKRTR MMoaBisZhC2Cv9ZrNS6boFFNeJ1isQQECsC0tBr2NvJcgiMXiyzF9TvHpAv3wSX9K6+Y=; Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jVwAO-000653-Fd; Tue, 05 May 2020 13:55:23 +0200 Received: by mail-wr1-x42f.google.com with SMTP id h9so2433954wrt.0; Tue, 05 May 2020 04:55:15 -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:message-id :mime-version:content-transfer-encoding; bh=yF8hONewYK6c+Rovee74EA+6uV4mVL59K2k/c3i0JEU=; b=XoCyogVMvXpI4SB2pLpvpjzYfxoUVtSPh5votsTVFc9QytJHCu6yW+rwejd9LfXYvG N96gm7LMZINT7nvctI6ULgoUL73VJTOPukUedjBH8K2/jwi8CcrDUWWaFy9LZiC7mtGz Ulil1pxqypgndnj9hGotgWjy+0CK/MR55ycFrYrSODB1A9/GvvuhJyol5S0UCz6jXSfK GNAGi2MU7Fk+UCBjpKNULLEp0SEm5mZuO1H3wXIytTOlZy7d8VpTj/PyPq3xpKmBTxWK adFXNpIZkTHmSwGqOlL4c5w5hcUGA49D+w2OmkIcCC+jUzDqgl0ECQrFpT57toygLGf6 RtEg== 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:message-id:mime-version :content-transfer-encoding; bh=yF8hONewYK6c+Rovee74EA+6uV4mVL59K2k/c3i0JEU=; b=NZJy7Ztej4kJgQtUQ8D3U/+uomo+PqBsQwIOWQnonfagQdrNqgVJNs/FPXh+rZVtwo 35WEuWKD1ROYMnKGPAWc3A4q9c8owS+5Ht3CfW5WWHrXGt1oBWhy+O3OgMZH2Pv7arMA ZB4OUxWPpj02tK1nkIlGOwp9s6Itb4kGhOxiQ3xJusQlEFQeOXOqo7ofNrrJTq6fJ5If Gw/X9HuTurCBLWa93XviUySU9cvVukLvYtCqFWhdyiR1ZgermbzkS6zzUZy5ntTaD0UV bV6maSnw66TBPzOY54yK4Xk0IYdTRNj2DLVuElZLU474sDWhqwQwguju9fenAdEL9C2m J4Tg== X-Gm-Message-State: AGi0PuY5QHQweIr37qhEM8Q5ya/4J19i5HWCuxIGrl8GEmwbhpGEo3w7 HW1CIVrTPwzKSJuspwav1JypmwWogk0= X-Google-Smtp-Source: APiQypKHXpnTY0qUt+U/BKW3bDATjVMYT1ZFdX06mTpXS0jABS8/snIMuBmO6zSJv3WRI2MS+ZyxEA== X-Received: by 2002:a05:6000:18c:: with SMTP id p12mr3182664wrx.335.1588679714786; Tue, 05 May 2020 04:55:14 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:252b:3c99:fbf0:b747]) by smtp.gmail.com with ESMTPSA id t67sm3922787wmg.40.2020.05.05.04.55.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2020 04:55:14 -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> <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> <87sggevlo5.fsf@gnus.org> Gmane-Reply-To-List: yes Date: Tue, 05 May 2020 13:55:11 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk >>>>> On Tue, 05 May 2020 10:19:22 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> That could work. 1 ping with a 500ms timeout? Or do we need 2 for >> those firewalls that will drop the first one? >>=20 >> Would adding something like >>=20 >> (unless (gnutls-ping (get-buffer-process (nnimap-buffer))) >> (delete-process (get-buffer-process (nnimap-buffer)))) >>=20 >> to nnimap-send-command be enough? Lars> I was thinking more of an async interface. Lars> gnutls-ping would return immediately, but return a status variabl= e that Lars> would evaluate to nil (as in "not gotten a pong"), that would cha= nge Lars> (asynchronously) to t when the TLS layer got a response. If we do that, then emacs has to implement the timeout logic for the ping somewhere. Lars> And then use that in the loop where we're waiting for a response = on the Lars> IMAP command. That would mean that we introduce no extra latency= for Lars> the commands, but send then before we know whether the connection= is Lars> still up. Hmm, OK. Unfortunately it looks like my GnuTLS is built without heartbeat support, so I can=CA=BCt test it right now. I suspect that=CA=BCs= a widespread configuration. tcp keepalive has the advantage of being part of the IP stack. Robert