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#71295: 29.3; url-retrieve-synchronously does not timeout if initial connection hangs Date: Thu, 06 Jun 2024 14:40:05 +0300 Message-ID: <86plsuguzu.fsf@gnu.org> References: <86bk4ko3lv.fsf@gnu.org> <19e5cb88-48a2-46a2-b9e9-c4a9c9198bb5@app.fastmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71295@debbugs.gnu.org, azeng@janestreet.com To: "Aaron Zeng" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 06 13:41:00 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 1sFBUK-0003a1-4A for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jun 2024 13:41:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFBUE-0006IX-T9; Thu, 06 Jun 2024 07:40:55 -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 1sFBUA-0006Hw-Bp for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 07:40:51 -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 1sFBU7-0007dH-QC for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 07:40:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFBUM-0006tA-B4 for bug-gnu-emacs@gnu.org; Thu, 06 Jun 2024 07:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Jun 2024 11:41: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.171767403626441 (code B ref 71295); Thu, 06 Jun 2024 11:41:02 +0000 Original-Received: (at 71295) by debbugs.gnu.org; 6 Jun 2024 11:40:36 +0000 Original-Received: from localhost ([127.0.0.1]:52589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFBTw-0006sP-0p for submit@debbugs.gnu.org; Thu, 06 Jun 2024 07:40:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFBTt-0006s7-CX for 71295@debbugs.gnu.org; Thu, 06 Jun 2024 07:40:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFBTT-0007Ys-Ts; Thu, 06 Jun 2024 07:40:09 -0400 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=0zdLr4StGPxzdXnhEzLFLs3WfNUTIKr6cU6dd8OolLo=; b=PocSsTAtO5Yo Zbl2b3Xz+CfUlm0dqjaACiLE+pMV3oQe9SAcp3GvZWZXiZS5iH+7CdKtDCqN5vJ/0g460fkhqNRKF AVLzehLRNcer41njShkTDG9AhUWvEi1vGkRbQbrWnGwfxQNw3sQ4qVWVbTPuZQyXyG1vY7EUAPMZy 4R11ir0GCLmdhiGcmYEVRXBt1auCDxtdyD2eaDIiE+fp6QucOaY0aI803mcxn6FKyzXk5Dr6APtLT ltCbGzo0LDq1cNEgv7Qr1+6TLfu86OFBGHOhXoxsS0sgdOm55BMzWHrVRlIeALYca2ANudxQObjA1 fe6vqwh4ASkGsf9+VYbuRg==; In-Reply-To: <19e5cb88-48a2-46a2-b9e9-c4a9c9198bb5@app.fastmail.com> (z@bcc32.com) 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:286686 Archived-At: > Date: Mon, 03 Jun 2024 20:09:03 -0400 > From: "Aaron Zeng" > Cc: 71295@debbugs.gnu.org, azeng@janestreet.com > > Is the idea just to use url-retrieve directly? I think so, yes. > 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.