From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.devel Subject: Re: [RFC] automatically retrying network connections Date: Mon, 23 Jul 2018 21:57:26 +0100 Message-ID: References: <87sh4dfz8r.fsf@gmail.com> <86pnzffla4.fsf@gmail.com> <87y3e2l5rs.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 1532381973 17156 195.159.176.226 (23 Jul 2018 21:39:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2018 21:39:33 +0000 (UTC) Cc: Andy Moreton To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 23 23:39:29 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 1fhiY7-0004Fl-VT for ged-emacs-devel@m.gmane.org; Mon, 23 Jul 2018 23:39:29 +0200 Original-Received: from localhost ([::1]:36871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhia9-0001kA-AS for ged-emacs-devel@m.gmane.org; Mon, 23 Jul 2018 17:41:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhhts-0001Q5-K5 for emacs-devel@gnu.org; Mon, 23 Jul 2018 16:57:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhhtr-0001yg-W7 for emacs-devel@gnu.org; Mon, 23 Jul 2018 16:57:48 -0400 Original-Received: from mail-io0-x22a.google.com ([2607:f8b0:4001:c06::22a]:43625) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhhtr-0001yW-Qd for emacs-devel@gnu.org; Mon, 23 Jul 2018 16:57:47 -0400 Original-Received: by mail-io0-x22a.google.com with SMTP id y10-v6so1710113ioa.10 for ; Mon, 23 Jul 2018 13:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=aBlwXzY8ITIC/SXkssFWOkoImZ8Ov1jSvRZX2sat/RA=; b=CNjFvyWxsmMXdrVby3WGtOI3o3VuNatRn726LtnSj+n7KhWC/IRKxOzxPSIqaYSEDB vcmPP8XiHo2d8caz/lI5pmhhwWfV7A2RcaLVLlZoXuMVtpc1DCCWcj2W+TslQ9wgUWzo EUCojYmdu0XTIEqQIC0j4ca1ow4vS+iRi5RTUoGfEscJVxHAOVlCZz/lAbaqW/Nyp39k SRlBkTFPqsTkFUuhpEk3wzNg7rBs7X8T14VYaSrUNUjFs/cHcGLE+gZeT7JbNTvav6KH 5x5dge4MRYcNycAod9QrkWEmUUvfNr007EJIkR7LlGalL9HZE6Qe/ExzQwOGDqsWL8cR O56w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=aBlwXzY8ITIC/SXkssFWOkoImZ8Ov1jSvRZX2sat/RA=; b=nElRJ3mOVLyx8te1KvhnqGV2mG2NA6Ip3PwOF7evbMP/qRQXM0ucLi6ienfK5aLjAX T9Ht/9n/lAzOnnVg16ohc97OknoV2X0HmBp50f+9XERIwbnebuslzXy8cLCM2kvKz6q4 Ch5oLYd1jsEWrzMveXj0nSJOvrgR3XKzjBRmbMzlRifzZkAKLJen4BhpYVFuSeOV0zqi SkP8LQyPMRDGGoZ30s4I2roshZmGFZ6Nx5+OmATP0LFzmIrE9o9JB0hVxtbEmuVut6U0 aJ3GZCZDDQVnr1M0oNbWnUxLLqfLnR34hd6kzmDmufniGTMxSS8WVP3ulE3Z2yFsx4Fo MHiA== X-Gm-Message-State: AOUpUlGaFeBoeQ6Ow8uKTorY2pyiSuiaAWOaLssSJ9P+n57ynxdZA3tR XC8XkZtArCpqosVYJq+p0unleSpQMxQoe+uh/+2mdA== X-Google-Smtp-Source: AAOMgpdZ+WjpaIipwzQxshY/NHa4Zn8p/ZDtk3Q1kRHAxuvn1udAR55WjTj64w+ggws6u3SYPuuD0gN9rdvPHjsCeuI= X-Received: by 2002:a6b:e00f:: with SMTP id z15-v6mr11145451iog.296.1532379466859; Mon, 23 Jul 2018 13:57:46 -0700 (PDT) Original-Received: by 2002:a02:985d:0:0:0:0:0 with HTTP; Mon, 23 Jul 2018 13:57:26 -0700 (PDT) In-Reply-To: <87y3e2l5rs.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::22a 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:227747 Archived-At: On Mon, Jul 23, 2018 at 9:23 AM, Robert Pluim wrote: > 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 to= o > much time was spent answering the nsm questions, retry once. That way > any true failure gets quickly communicated to the user. > > Robert Sounds good to me too.