From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#71295: 29.3; url-retrieve-synchronously does not timeout if initial connection hangs Date: Thu, 6 Jun 2024 23:41:39 +0300 Message-ID: References: <86bk4ko3lv.fsf@gnu.org> <19e5cb88-48a2-46a2-b9e9-c4a9c9198bb5@app.fastmail.com> <86plsuguzu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39250"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 71295@debbugs.gnu.org, azeng@janestreet.com To: Eli Zaretskii , Aaron Zeng Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 22:52:16 2024 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 1sFK5o-000A0m-2R for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 22:52:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFK5N-0007Yw-GD; Thu, 06 Jun 2024 16:51:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFK5M-0007X8-Ll for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 16:51:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFK5M-0005yl-7p for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 16:51:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFK5a-0006Sq-IP for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 16:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jun 2024 20:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71295 X-GNU-PR-Package: emacs Original-Received: via spool by 71295-submit@debbugs.gnu.org id=B71295.171770710124788 (code B ref 71295); Thu, 06 Jun 2024 20:52:02 +0000 Original-Received: (at 71295) by debbugs.gnu.org; 6 Jun 2024 20:51:41 +0000 Original-Received: from localhost ([127.0.0.1]:40705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFK5E-0006Rk-HH for submit@debbugs.gnu.org; Thu, 06 Jun 2024 16:51:40 -0400 Original-Received: from wfout7-smtp.messagingengine.com ([64.147.123.150]:35505) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFK5B-0006RM-OL for 71295@debbugs.gnu.org; Thu, 06 Jun 2024 16:51:39 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.west.internal (Postfix) with ESMTP id 159F31C00098; Thu, 6 Jun 2024 16:41:43 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 06 Jun 2024 16:41:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1717706502; x=1717792902; bh=o71wxHQ+5AFlak+h8g8b+9jIg/M0/PWww6rv45pk3e4=; b= Iclw2GjGoSzdpoPi7sFY2wLE+t/mKWvnbD/EkLMg77O+T+7b4XPVEzjmzbvd8uvp ntNelwjiCPJbiESjPHLy710a0WujkfIZFw5v1UKSgPwm1aAI2VNDE/AtElkBpGDk 25iJ8+l0F1bW47pXp5WlrRAurCiZvlYmMPlpJQ7cb0urlBAYjipcrcv8nu1Uvhoc 799HVBQwWXKw96I8sgm98UlN+01W7agT/cAmEcJZIE7QazqxSaH93CvcIXONsV5J FGf25QmwmFCgAJ3tQNFG+f8leuEhGaBDp7E6tmUG/mQCB+K1/P4oHNDzttxX3e/S D7u0hRbhLymZtlnIMVAt6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717706502; x= 1717792902; bh=o71wxHQ+5AFlak+h8g8b+9jIg/M0/PWww6rv45pk3e4=; b=c lXjSxNxkH/I0u/FjnmNtd52JtPRfuM18TtdZLV8Y9r5LWTkUwasPX6kn3927JAVJ OYqro+hgCPBHe2e79iGOAw5zP4NI9MjbsTywwVvj5DBC7sKWkXsUnSRrmFkjiFXp RKHEV/EhZBpqfhcYblWNMen+sEXJlPN0X9IIs37mCRGQ/I+evKnqwpfZ2JdQhNEk GYol8b18RfBXsO28Lv861HfdWL/zhxL0xG1GHPgb5hjHT1kLeI1qUT4hpipYWeD2 nK1yCYB9vQdo0XXQFoKZEVwxGmyD/UKXmCyDPW3NowWNStDSFGcKicCgmBd/pdJE Uyihpk/dP5QrYaYMEK1aw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelkedgudehtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveeg udejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Jun 2024 16:41:41 -0400 (EDT) Content-Language: en-US In-Reply-To: <86plsuguzu.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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286722 Archived-At: On 06/06/2024 14:40, Eli Zaretskii wrote: >> This is probably rather naive of me, but I guess now I'm wondering why url-retrieve-synchronously actually sets url-asynchronous to nil. Is there a good reason not to use :nowait when it is available? It seems like it would be useful to have a wrapper around url-retrieve that just "does what I mean" here. > Maybe. I wonder what others think about this. It seems like a leaky abstraction (the caller has to be aware that what happens under the covers is done in several steps, and the timeout only applies to subsequent ones). If we could change the implementation to a more intuitive behavior, that would be a win, I think. Can somebody think of adverse effects?