From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.bugs Subject: bug#47431: Process Whois connection broken by remote peer. Date: Mon, 29 Mar 2021 22:16:26 +0800 Message-ID: References: <835z1dp0qg.fsf@gnu.org> <83y2e9nhne.fsf@gnu.org> <87zgynp9t5.fsf@gnus.org> <406246af7fb57420287b@heytings.org> <83k0pqmulc.fsf@gnu.org> <83a6qmmk11.fsf@gnu.org> <831rbymal3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22928"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , 47431@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 29 16:17:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQsha-0005qB-QF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 16:17:10 +0200 Original-Received: from localhost ([::1]:47182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQshZ-0007g6-Nh for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 10:17:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQshS-0007fh-SG for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 10:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQshS-0008Ul-L2 for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 10:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQshS-0008HP-Er for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 10:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Hongyi Zhao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Mar 2021 14:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47431 X-GNU-PR-Package: emacs Original-Received: via spool by 47431-submit@debbugs.gnu.org id=B47431.161702741831815 (code B ref 47431); Mon, 29 Mar 2021 14:17:02 +0000 Original-Received: (at 47431) by debbugs.gnu.org; 29 Mar 2021 14:16:58 +0000 Original-Received: from localhost ([127.0.0.1]:49171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQshN-0008H5-Ls for submit@debbugs.gnu.org; Mon, 29 Mar 2021 10:16:57 -0400 Original-Received: from mail-yb1-f178.google.com ([209.85.219.178]:40778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQshL-0008Gp-D0 for 47431@debbugs.gnu.org; Mon, 29 Mar 2021 10:16:56 -0400 Original-Received: by mail-yb1-f178.google.com with SMTP id a143so13917783ybg.7 for <47431@debbugs.gnu.org>; Mon, 29 Mar 2021 07:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SRrOO27utFLHeE3UuDNp9z4XP5ETBMzkYMaZCFR3bvs=; b=hhsFNEc+ZVmJSeL6DWMCAoJ3H03TtNiM5JTMGnnDZij4ZVrIDduE++TLnWLnFaaOum +ZQeM0KtUmOnOhSgP8wBfvEabu6EyNmFIGQixk+1NJKNXf2xVTfkJWBkSJXeU9jnZbwF k51UP105nD06IUSdd/DMlaOGS9+ddI8WlobEzS7kA3yrR+BEjkPjZeUHRCNVZazTjsHq +JFHjjKARDO36nbY5nV4Q6Af8ihOoLF0lrFIcRs0Cg29a6gWwzUmwl7lnBEgDVutN36k lcjB666Z+txPViY1au0xD9sSZC24hfGBrb6BzgMXLoZxiorojVMk1K5nWajE3sCF6zkv 1eYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SRrOO27utFLHeE3UuDNp9z4XP5ETBMzkYMaZCFR3bvs=; b=KbHP5FJ3ZxfK0xdH0PzoklvF84tAszIpD15YrReNPXVUz9iAHKHfOpc6tewyW/O4/C b+tdts8OMSBdtR0NoP2qk3IguoLQeOGcZFftyGvoSz8QLJntlDh9ps5xJmwTVNwy+qL/ ztIDHnmntLTZS8Ayg6Yf4gcqCFKgGxClnlv6kDZTT0nQ0+0Sgwy4+HdzTyMc4KDP8KeU ofhSIcvlEnMaUBRXXHdMcAS8NUvhVrFj9fnxE+C5CFfIgMLgMUNIhTvahKYLICAum8Nt JZeOqTkI037UlqXfR8AkJlkSky3x7vpeNxlL3Nl6jb0qHEPObYudQYY8OEqZDBDTL7cH d46Q== X-Gm-Message-State: AOAM530PtO9Qa4HKtPUx5UH4zK5Z1B2yOel7WHVZEFCIu3MxRbopkBS/ tJlB7eGlqO3rYElLiYCZj98P1FvVf0JHklSUq+WcxD6xGX0y1tDu X-Google-Smtp-Source: ABdhPJxxFEDiB9I9g8gEubXjuRfaaKuvJFEH9qR2P5BM6LYMq49MWjZNGTWmrR2l0tX/v2tSwwqKDI0V6k0Gzv5dODU= X-Received: by 2002:a25:2287:: with SMTP id i129mr39641680ybi.373.1617027398320; Mon, 29 Mar 2021 07:16:38 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203238 Archived-At: On Mon, Mar 29, 2021 at 8:12 PM Gregory Heytings wrote: > > > >>>> Possibly with a cache to mitigate the above problem. > >>> > >>> I'd wait with caching until we see a performance problem. It isn't > >>> like people are expected to invoke this command many times in a row. > >> > >> I think you misunderstood what I meant. The idea would be to cache the > >> replies from the whois.iana.org server, not those of the final whois > >> server. IOW, the idea would be to dynamically build a local database > >> instead of relying on a hard-coded list. > > > > I understand that, and I'm still questioning the need for such a cache. > > > > If you have a cache, you need to manage it: add items that aren't there, > > delete items no longer pertinent, etc. Emacs sessions can run for many > > moons, so the cache will have to be dynamically adjusted. > > > > Yes, I know this. > > > > > By contrast, requesting the list each time a query is invoked is much > > easier, so if performance is reasonable, why bother with a cache and > > risk subtle issues? > > > > It's not a performance issue, it's a privacy issue. Emacs users might not > want to communicate all their queries to two servers when communicating > them to a single server is possible. > > It might also (but that's not yet clear) be an abuse issue, as Lars > pointed out. It's not clear whether the whois.iana.org server is intended > to be repeatedly queried by whois clients. AFAICS, there should be the following considerations: 1. The whois.iana.org should not be queried by each of the clients on the world repeated for each query which may overload the server. 2. Every whois query should be sent directly to a server near the client's geographic location. Regards -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China