From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#47431: Process Whois connection broken by remote peer. Date: Mon, 29 Mar 2021 11:31:59 +0000 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7558"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 47431@debbugs.gnu.org, hongyi.zhao@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 29 13:33:47 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 1lQq9S-0001oW-VT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 13:33:46 +0200 Original-Received: from localhost ([::1]:50870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQq9R-0004lq-T0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 07:33:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQq8k-0004ID-CS for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 07:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQq8k-0005Qx-55 for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 07:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQq8j-000411-W3 for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 07:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Mar 2021 11:33:01 +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.161701752414098 (code B ref 47431); Mon, 29 Mar 2021 11:33:01 +0000 Original-Received: (at 47431) by debbugs.gnu.org; 29 Mar 2021 11:32:04 +0000 Original-Received: from localhost ([127.0.0.1]:48010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQq7n-0003f3-Vs for submit@debbugs.gnu.org; Mon, 29 Mar 2021 07:32:04 -0400 Original-Received: from heytings.org ([95.142.160.155]:45940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQq7l-0003c7-FI for 47431@debbugs.gnu.org; Mon, 29 Mar 2021 07:32:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1617017520; bh=sS/JnxnbxsGggABR6ub0iCSPmsXkpOziNjqJIn+NTTI=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=dOnck+gf2vMevnqc6hEUBSdk7gwTbUJeZIdpXIfuM8+PZw3PHAta0mDWUTUhfmO0c iC7T5jxsOL425IDZ+1aF+878bLwIjBnP5P8acQwr8omkIWDNJRKidSYoDaZWGK2o3m SmH3dv7iuWXmgTt4oJN35Zf7a2HXqNO1fvOBvhgBEjrLJUh65Tfml0pAna1ZivSm7p lsbU7/x6zRPffRLc7DmP/BBf+8ZLQugTjOj8+eAq4vJcWBae7GdV7OhYgBkk0cR4tx z32mkcJmSbHbWYyI/mj5rlbLrGjqotPteJ8dpQAaM7BmK9m5uw2i7eIUOlnFMQR7ON CUQHEeZ45FBLQ== In-Reply-To: <83a6qmmk11.fsf@gnu.org> 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:203232 Archived-At: >>>> IOW, without a built-in list, each whois query would create two >>>> requests, one to whois.iana.org, and one to the actual whois server. >>> >>> I don't see any problems with that, do you? >> >> In principle, I don't see any problems. But I seem to recall that RMS >> dislikes solutions that make unnecessary network connections, or IOW >> that avoidable network connections should be avoided. >> >> If you agree on the general design, I'd be happy to implement it. > > I don't see a problem, no. We frequently make network connections when > necessary. > >> 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.