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#32452: 26.1; gnutls_try_handshake maxes out cpu retrying when server is a bit busy Date: Sat, 26 Feb 2022 17:37:08 +0200 Message-ID: <83ee3pprkr.fsf__34822.2938993544$1645889899$gmane$org@gnu.org> References: <87wosqwlu3.fsf@gmail.com> <83zhxmgqrh.fsf@gnu.org> <87r2ixx0t6.fsf@gmail.com> <83pnyhh6ta.fsf@gnu.org> <87o9e1w6kf.fsf@gmail.com> <83d0uhgoxw.fsf@gnu.org> <87ftzcwso7.fsf@gmail.com> <83pnygfajo.fsf@gnu.org> <874lfownf9.fsf@gmail.com> <83va84cuf6.fsf@gnu.org> <87k0doi6vy.fsf@gnus.org> <905557ed-58f6-8671-51de-a44e73029aa9@cs.ucla.edu> <87ley15pp6.fsf@gnus.org> <172175b8-c6b3-314f-e803-e00d04f5d57a@cs.ucla.edu> <87y221436n.fsf@gnus.org> <0df255b3-41a1-619d-97d3-28fd246e0b9f@cs.ucla.edu> <87pmnc4p64.fsf@gnus.org> <87v8x3znmm.fsf@gnus.org> <6f364184-7fa8-04f3-44a9-22ce40b872e8@cs.ucla.edu> <8735k5vezs.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12215"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eggert@cs.ucla.edu, bug-gnulib@gnu.org, npostavs@gmail.com, 32452@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 26 16:38:13 2022 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 1nNz9A-00031p-Vy for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 16:38:12 +0100 Original-Received: from localhost ([::1]:40534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNz99-0006G5-S2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 10:38:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNz90-0006FR-0e for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 10:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34032) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNz8z-0004Is-OV for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 10:38:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNz8z-0008RX-La for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 10:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Feb 2022 15:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 32452-submit@debbugs.gnu.org id=B32452.164588985232420 (code B ref 32452); Sat, 26 Feb 2022 15:38:01 +0000 Original-Received: (at 32452) by debbugs.gnu.org; 26 Feb 2022 15:37:32 +0000 Original-Received: from localhost ([127.0.0.1]:56162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNz8V-0008Qp-Sy for submit@debbugs.gnu.org; Sat, 26 Feb 2022 10:37:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNz8T-0008QV-LZ for 32452@debbugs.gnu.org; Sat, 26 Feb 2022 10:37:30 -0500 Original-Received: from [2001:470:142:3::e] (port=55850 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNz8N-0004Cu-Pq; Sat, 26 Feb 2022 10:37:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=pwgTYBNeJYlFudW9BfMw2i91DQotIIuB2Cz3pR60gFc=; b=sOEBybtVvNek X25slPN1RbdUdVgMEhNgoAyGStq8sBzLeUvefftS7rUkKZmGQCfzsWso1ZtuP6SWK4bvkOUmYh4lU 3LRDGM4Wg6yW0oVBbke0FLdq1DEX9Gjx/ezCx6iH1r2+eUcXjPpC8oI802k6naD+Yanceyk8UU1mD k2DO+PCM9cxFQynv+mJ5RM4hDdVtW4RFn+ZxNqFir6OzDtmhZHuw1cSJKQTDi7K3SXzuBzgD3JkNl L1Z7P4gMq8mK1+RyyznnP771l+YNbWlWOd23iI6/2oh5XGr0ZmIFUcmOWYNRwB4+BcReJQ2z9oz80 qDYb+mHq5xq7FL4rTCHmQQ==; Original-Received: from [87.69.77.57] (port=2382 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNz8N-0003HT-81; Sat, 26 Feb 2022 10:37:23 -0500 In-Reply-To: <8735k5vezs.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 26 Feb 2022 16:12:23 +0100) 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:227679 Archived-At: > From: Lars Ingebrigtsen > Cc: Noam Postavsky , 32452@debbugs.gnu.org, Eli > Zaretskii , Gnulib bugs > Date: Sat, 26 Feb 2022 16:12:23 +0100 > > Paul Eggert writes: > > > Gnulib's nanosleep appears to use select only for old Unixish > > platforms that were relevant in 2000 but aren't practical porting > > targets any more. So I installed into Gnulib the attached patch to > > simplify Gnulib nanosleep by having it fall back on pselect rather > > than select, and to not bother with signal handling. This should cause > > your addition of nanosleep to admin/merge-gnulib to add only the files > > lib/nanosleep.c and m4/nanosleep.m4 (not the other, signal-related > > files you mentioned; they shouldn't be needed with Emacs). > > Thanks; that does indeed fix the issues, and ./admin/merge-gnulib now > works fine for me when I add nanosleep to the list of modules. > > > I notice that Emacs's GNUstep code calls 'select'. For completeness > > this should be 'pselect' instead, so that Emacs never calls 'select'. > > OK; I'll have a look at that... Please post the patch before landing it. Gnulib's nanosleep is problematic on MS-Windows (and shouldn't be used there anyway), so I'd like to eyeball the changes before they are installed. Thanks.