From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: [RFC] automatically retrying network connections Date: Mon, 23 Jul 2018 10:23:35 +0200 Message-ID: <87y3e2l5rs.fsf@gmail.com> References: <87sh4dfz8r.fsf@gmail.com> <86pnzffla4.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1532334108 29071 195.159.176.226 (23 Jul 2018 08:21:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2018 08:21:48 +0000 (UTC) Cc: Andy Moreton , Emacs-Devel devel To: Jimmy Yuen Ho Wong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 23 10:21:43 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhW68-0007Q5-JQ for ged-emacs-devel@m.gmane.org; Mon, 23 Jul 2018 10:21:40 +0200 Original-Received: from localhost ([::1]:33291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhW8F-0002qu-Gi for ged-emacs-devel@m.gmane.org; Mon, 23 Jul 2018 04:23:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhW88-0002qd-AA for emacs-devel@gnu.org; Mon, 23 Jul 2018 04:23:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhW83-0000nw-9m for emacs-devel@gnu.org; Mon, 23 Jul 2018 04:23:44 -0400 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:46903) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhW83-0000nd-1v for emacs-devel@gnu.org; Mon, 23 Jul 2018 04:23:39 -0400 Original-Received: by mail-ed1-x52c.google.com with SMTP id o8-v6so158052edt.13 for ; Mon, 23 Jul 2018 01:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=3VhBkIPsPnQPdTlLG/xHdWL1vwc41VOPrXclMgRmL7A=; b=U4OUy6HbMxnyDeLyGUaUchiprQlgIQhm37/4BBq5/8dM5WpxGx7wqsHHJFgCz9H4jY eemIf1VX9ZOum4NvaH1CXgRVvOloQGP8bJC8iXW5wrkgziPF/MHsyBvvD3cXIRPcyVjQ KOS0PvqaInxDBXEPHWwVvlMgp7E9CaHTKC+bzJPES1g8NFH0FLQusmr+9xzRcN5+iZ+/ xi9PJ2V4C9oru9AYcXRFALBr9CJkgKUAWOoEjBE1d53Lb00MLt0vwcY54w2jISPv7Kkv MmTW4N3UN7hzzZiGnIWqKoFtzbkVf2JN3FSq2zFgHaLR6Jy+VrMI44WEz0WkqlZNtxDq 2o2Q== 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:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=3VhBkIPsPnQPdTlLG/xHdWL1vwc41VOPrXclMgRmL7A=; b=S1VykUAHZqndnGP+kaEGbDz1XLhjVK6BF/TSpQHbTeid4utBGCkvfF3MhS0qPoC4HW vlvIU/u49+PY0XjIrBxO9uyzdMYLoOrZSYBT1JLG81e8rdfXsV9QzIN6ZC4Fd/hbow2O dxMXzInrs2zG6rfKTFOdHMz11J0P4Gp5b6frrixuaFUtXUXQHYG2hL0tKvwhHsIjgPk+ x00oXtaJ/Q2JONWnTBRtvGaSFS0V2IKAHlZ2ebwA7BD4+p/IdlerNWdT7GIR4A/MZwHB SXYc6L1hsFgemhhJAzSHDFAatfTugClbLhadinU+MLIM0SneZjnVCII9jNL9REQC5+At jYmA== X-Gm-Message-State: AOUpUlG7h58N74vGmZUXJ80GQTkzn9/lwaxy0jRumtMrAWquC5K+0SD0 9bUgyYWbA2oGIpbRtIGA1aIBxby8 X-Google-Smtp-Source: AAOMgpeOn5dydG0xwZYbjxdBMQMkWlILJgchEhcSxSTxQWc7Oi1dohP/QyFn2eUQJKBtU8qf8b5Pyw== X-Received: by 2002:a50:aca3:: with SMTP id x32-v6mr12914434edc.41.1532334217683; Mon, 23 Jul 2018 01:23:37 -0700 (PDT) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id j16-v6sm12854492edj.71.2018.07.23.01.23.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jul 2018 01:23:36 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Jimmy Yuen Ho Wong's message of "Mon, 23 Jul 2018 00:27:44 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::52c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:227702 Archived-At: Jimmy Yuen Ho Wong writes: >> Won't that cause problems for users of sites that use fail2ban to lock >> people out after failed login attempts ? It might be convenient, but >> would need a user option so it could be disabled. >> > > I think exponential backoff and a max-retry is in order. I=CA=BCd argue for simplicity: try the connection, if it fails because too much time was spent answering the nsm questions, retry once. That way any true failure gets quickly communicated to the user. Robert