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#72652: 31.0.50; url-retrieve on non-existent domain gives no indication of error Date: Sat, 17 Aug 2024 08:50:23 +0300 Message-ID: <86cym766lc.fsf@gnu.org> References: <504501.1723782848@archlinux> <86wmkg6hgd.fsf@gnu.org> <515941.1723837151@archlinux> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15997"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72652@debbugs.gnu.org To: Greg Minshall Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 17 07:53:50 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 1sfCNp-00044X-PR for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Aug 2024 07:53:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfCNT-0007r5-9l; Sat, 17 Aug 2024 01:53:27 -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 1sfCNR-0007qq-5z for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 01:53:25 -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 1sfCNQ-0000RZ-Ju for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 01:53:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=8rakRcJR0xXnAmZMz3AIIV1sVgDwAce1HQHeEk8d+FI=; b=Sh7JrEiydsXfD6W358bH+1TQKdmP0cvB0iTax4usiFXG8LUo/cjm04FmSTuXeIelwZChmY0+YTBULW6oSfpcSbX/YGoD2EaJCfFzQe2ikG6tpr5OvWuhtvDp5qKsyiab5MAEeGUpbpFpnjoO0ci/UzRBkYf1fjEt20+psMhMpzr7sdWw7hQ80urgSl/Epfq9OFitD+zwomV/IOAZWqw9AbycQt0cnzHswYN5pTCxqI4HUi+0n1Zew0aQxFIqDy8lq6ZIK6U+Gn3z10m0vSJR2pI3Dj7iHtI5D9uCS1aYxsmAjCXh+hRgwjwGHtqDJHVD6tEeCzvVovBJ/+yvkrRbeA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sfCO2-0004sC-2a for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2024 01:54: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: Sat, 17 Aug 2024 05:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72652 X-GNU-PR-Package: emacs Original-Received: via spool by 72652-submit@debbugs.gnu.org id=B72652.172387400718690 (code B ref 72652); Sat, 17 Aug 2024 05:54:02 +0000 Original-Received: (at 72652) by debbugs.gnu.org; 17 Aug 2024 05:53:27 +0000 Original-Received: from localhost ([127.0.0.1]:53251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfCNT-0004rO-GS for submit@debbugs.gnu.org; Sat, 17 Aug 2024 01:53:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sfCNR-0004r9-3w for 72652@debbugs.gnu.org; Sat, 17 Aug 2024 01:53:26 -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 1sfCKb-0000Bp-9V; Sat, 17 Aug 2024 01:50:29 -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=8rakRcJR0xXnAmZMz3AIIV1sVgDwAce1HQHeEk8d+FI=; b=HFuaeEQdAkeX IY+rKANRL+FZUlD8NTmO6FFebf2QPP7A1wY5V2xVZeoCQgjmCxfkQOIp188NFhGSNQJwU6R/4C4pG rOOeJy/oL4otyEWE+2EEcaF11K6eft5Tv3Nj6D2lds+ldO/ploqPJ11h9vuwtmMEc99r93M+vGZVg AvMe6YuTQa2eHcu2lM64K2QUf8E+xqjiv9MYCengOmpNVk5xKPEeFCwSDlBYRsXo2I4GQLN+e6yhz bs4I91382SkH+401LfAbyDgtttIBW9j9vjZFSb1uZuCTDg2DiNKghmN8kg12JQrC9IZMT59ioF1ce sggHMovpdXYJgzIGlWufnw==; In-Reply-To: <515941.1723837151@archlinux> (message from Greg Minshall on Fri, 16 Aug 2024 22:39:11 +0300) 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:290212 Archived-At: > cc: 72652@debbugs.gnu.org > From: Greg Minshall > Comments: In-reply-to Eli Zaretskii > message dated "Fri, 16 Aug 2024 10:43:30 +0300." > Date: Fri, 16 Aug 2024 22:39:11 +0300 > > > On MS-Windows (mytry 2) signals an error: > > i see. possibly the Emacs on windows is using a synchronous DNS > resolver (possibly not). Yes, I think so. > the problem is that there's no indication from url-retrieve that the > requested transfer has failed (or has in any way finished). the only > reason the message about the buffer was printed out was because the > mytry script times out after 5 seconds, prints out whatever might be in > the buffer. > > so, a program that calls url-retrieve for an unknown host is never > notified that anything happened. > > > if some sort of error is detected synchronous with the call to > url-retrieve (i.e., before url-retrieve returns to its caller), > signaling an error seems fine. > > in the case where the error is detected later, then i think (if > possible) url-retrieve should cause a callback to happen, with the > `:error` data in the status parameter specifying something like "unknown > host". > > in the case of (mytry 1), there is a callback (to the callback routine > specified in the invocation of url-retrieve) which passes an error > indication: > ---- > called back: ((:error (error http 500) > ---- > (one can modify mytry to print out the status given to the > callback routine -- see below.) Patches to report an error in the (mytry 2) case are welcome.