From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47431: Process Whois connection broken by remote peer. Date: Mon, 29 Mar 2021 15:02:48 +0300 Message-ID: <831rbymal3.fsf@gnu.org> References: <835z1dp0qg.fsf@gnu.org> <83y2e9nhne.fsf@gnu.org> <87zgynp9t5.fsf@gnus.org> <406246af7fb57420287b@heytings.org> <83k0pqmulc.fsf@gnu.org> <83a6qmmk11.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19525"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 47431@debbugs.gnu.org, hongyi.zhao@gmail.com To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 29 14:03:15 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 1lQqby-0004zV-Jd for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 14:03:14 +0200 Original-Received: from localhost ([::1]:40126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQqbx-0005EU-IQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 08:03:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQqbm-0005EM-Rn for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 08:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36470) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQqbm-00062t-KI for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 08:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQqbm-0004iw-Gj for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 08:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Mar 2021 12:03: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.161701937118139 (code B ref 47431); Mon, 29 Mar 2021 12:03:02 +0000 Original-Received: (at 47431) by debbugs.gnu.org; 29 Mar 2021 12:02:51 +0000 Original-Received: from localhost ([127.0.0.1]:48016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQqba-0004iU-M3 for submit@debbugs.gnu.org; Mon, 29 Mar 2021 08:02:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQqbX-0004iF-E2 for 47431@debbugs.gnu.org; Mon, 29 Mar 2021 08:02:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42239) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQqbR-0005lD-L1; Mon, 29 Mar 2021 08:02:41 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2531 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lQqbO-0001km-Ol; Mon, 29 Mar 2021 08:02:39 -0400 In-Reply-To: (message from Gregory Heytings on Mon, 29 Mar 2021 11:31:59 +0000) 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:203234 Archived-At: > Date: Mon, 29 Mar 2021 11:31:59 +0000 > From: Gregory Heytings > cc: larsi@gnus.org, 47431@debbugs.gnu.org, hongyi.zhao@gmail.com > > >> 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. 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?