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: Sat, 27 Mar 2021 07:23:20 +0000 Message-ID: References: <835z1dp0qg.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="38788"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47431@debbugs.gnu.org, Hongyi Zhao To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 27 08:24:10 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 1lQ3In-0009z8-WE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 08:24:10 +0100 Original-Received: from localhost ([::1]:49310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQ3In-0002Jf-1K for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 03:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQ3Ih-0002JQ-9A for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 03:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60013) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQ3Ig-0000jt-8D for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 03:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQ3Ig-0003fq-4V for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 03:24: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: Sat, 27 Mar 2021 07:24: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.161682980414066 (code B ref 47431); Sat, 27 Mar 2021 07:24:02 +0000 Original-Received: (at 47431) by debbugs.gnu.org; 27 Mar 2021 07:23:24 +0000 Original-Received: from localhost ([127.0.0.1]:43326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQ3I3-0003en-Oy for submit@debbugs.gnu.org; Sat, 27 Mar 2021 03:23:24 -0400 Original-Received: from heytings.org ([95.142.160.155]:43328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQ3I1-0003ed-Fk for 47431@debbugs.gnu.org; Sat, 27 Mar 2021 03:23:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1616829800; bh=a/XzkZeiTQvUo+7eXaNjWLG0+Yz4L7tU75WAvZjKO/o=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=m5JwxOm+doKq1yl5PNPr8mCnsD8zQ7o4v53WJNFFiMOwepkU7u7L+jvb+pIg0nVIB Vs1BvHT+beYYqNjyqq6a+ya8pmgDFxElhH9AYXE1HRHiDo8EM14R/o27EfReaQA0JG yxZdB4g3W8A+yfWLtUlgzlxBezePnFL0Sif2/bgxqi1+BQurQE/mt8TiJqoMyO0kzh MVcwtiWjlS6qpi3VkGpF1EpBBbqz+K09JEfQtr5qr/PxFsgqQSxJud/d7KCFB4f4om GFUi5+65hKESNp5Fb6v54v1RlBsU31S23jh11U3PK9IFplo1Igv64mXeQczwCZC1Hp +NHbhIy2LcLhg== In-Reply-To: <835z1dp0qg.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:203104 Archived-At: >> On Ubuntu 20.04, I'm using the self compiled git master version of >> Emacs. It seems that the whois client in Emacs only works for some >> specific domain names, for example gnu.org and emacs.org, but for >> others like facebook.com it just hangs and returns nothing. The >> following command will trigger the error: >> >> "M-x RET whois RET facebook.com" > > It doesn't hang here (I'm not on Ubuntu, though). It times out: > > open-network-stream: make client process failed: Connection timed out, > :name, Whois, :buffer, *Whois*, :host, rs.internic.net, :service, 43, > :nowait, nil, :tls-parameters, nil, :coding, nil > > If I try a different server, it does work: > > C-u M-x whois RET facebook.com RET whois.crsnic.net RET > > This returns immediately with a large *Whois* buffer. > > Perhaps some network expert could tell why we use by default a server > that is less useful. > (I'm not a network expert, but...) It is probably better to let the whois client select the appropriate server itself. The current default whois-server-name (rs.internic.net) doesn't work at all, and although whois-guess-server is t, it doesn't work well. The manpage of whois says: "This version of the whois client tries to guess the right server to ask for the specified object. If no guess can be made it will connect to whois.networksolutions.com for NIC handles or whois.arin.net for IPv4 addresses and network names."