From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#40775: 28.0.50; dns-query sometimes infloops Date: Thu, 23 Apr 2020 18:51:10 +0200 Message-ID: <87zhb2ywld.fsf@gnu.org> References: <87eesfsaik.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="15953"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 40775@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 23 18:57:13 2020 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 1jRfA0-00043U-EV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Apr 2020 18:57:12 +0200 Original-Received: from localhost ([::1]:59836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRf9z-0002Rp-G4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Apr 2020 12:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41510) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRf7z-0006IM-4q for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2020 12:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRf50-0004ay-3O for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2020 12:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44243) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRf4z-0004at-NB for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2020 12:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRf4z-0002op-L0 for bug-gnu-emacs@gnu.org; Thu, 23 Apr 2020 12:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Apr 2020 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40775 X-GNU-PR-Package: emacs Original-Received: via spool by 40775-submit@debbugs.gnu.org id=B40775.158766068210787 (code B ref 40775); Thu, 23 Apr 2020 16:52:01 +0000 Original-Received: (at 40775) by debbugs.gnu.org; 23 Apr 2020 16:51:22 +0000 Original-Received: from localhost ([127.0.0.1]:55789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRf4L-0002nv-Lp for submit@debbugs.gnu.org; Thu, 23 Apr 2020 12:51:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRf4J-0002ni-Sd for 40775@debbugs.gnu.org; Thu, 23 Apr 2020 12:51:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50576) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRf4E-0004Sj-H3 for 40775@debbugs.gnu.org; Thu, 23 Apr 2020 12:51:14 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:52427) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jRf4E-0002U1-6q for 40775@debbugs.gnu.org; Thu, 23 Apr 2020 12:51:14 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id D2A6527C005A for <40775@debbugs.gnu.org>; Thu, 23 Apr 2020 12:51:12 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 23 Apr 2020 12:51:12 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeelgdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufhfffgjkfgfgggtsehttdertd dtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhr gheqnecuffhomhgrihhnpeiijhhprdgtohguvghspdhgnhhurdhorhhgnecukfhppeelfe drvdefiedrudeffedruddtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhith ihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghs thhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p5dec8567.dip0.t-ipconnect.de [93.236.133.103]) by mail.messagingengine.com (Postfix) with ESMTPA id BDECE3065D3D for <40775@debbugs.gnu.org>; Thu, 23 Apr 2020 12:51:11 -0400 (EDT) In-Reply-To: <87eesfsaik.fsf@gnu.org> (Tassilo Horn's message of "Wed, 22 Apr 2020 19:20:03 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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:178860 Archived-At: Tassilo Horn writes: > Since the recent changes to gravatar.el, the standard gravatar service > is libravatar now. gravatar--service-libravatar does some DNS queries > to check if the domain of the mail address hosts the gravatar images > itself. > > Sometimes, emacs gets stuck while doing the dns-query. The emacs > process uses 100% of one core of my system, and this situation > persists for at least a minute (before I C-g, i.e., I don't know if it > would ever recover from such a situation). Ok, I think I have it. It doesn't infloop, it just takes a lot of time for DNS queries on some domains, and if the From, To and Cc of a message contain many mail addresses, and for each one there are two dns-queries, then it may add up to long delays (of several minutes). For example, for me with emacs -Q (benchmark-run 1 (dns-query "_avatars-sec._tcp.zjp.codes" 'SRV) (dns-query "_avatars._tcp.zjp.codes" 'SRV)) consistently takes 20 seconds, 10 seconds for each (unsuccessful) query. Those queries will be performed for every foo@zjp.codes mail address in a message. In contrast, the calls for my own mail address (benchmark-run 1 (dns-query "_avatars-sec._tcp.gnu.org" 'SRV) (dns-query "_avatars._tcp.gnu.org" 'SRV)) "only" take 5 seconds, 2.5 per query. Bye, Tassilo