all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Greg Minshall <minshall@umich.edu>
Cc: 72652@debbugs.gnu.org
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	[thread overview]
Message-ID: <86cym766lc.fsf@gnu.org> (raw)
In-Reply-To: <515941.1723837151@archlinux> (message from Greg Minshall on Fri,  16 Aug 2024 22:39:11 +0300)

> cc: 72652@debbugs.gnu.org
> From: Greg Minshall <minshall@umich.edu>
> Comments: In-reply-to Eli Zaretskii <eliz@gnu.org>
>    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.





  reply	other threads:[~2024-08-17  5:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-16  4:34 bug#72652: 31.0.50; url-retrieve on non-existent domain gives no indication of error Greg Minshall
2024-08-16  6:11 ` bug#72652: sentinel Greg Minshall
2024-08-16  7:43 ` bug#72652: 31.0.50; url-retrieve on non-existent domain gives no indication of error Eli Zaretskii
2024-08-16 19:39   ` Greg Minshall
2024-08-17  5:50     ` Eli Zaretskii [this message]
2024-08-17 12:54       ` Greg Minshall
2024-09-13  1:50         ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86cym766lc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=72652@debbugs.gnu.org \
    --cc=minshall@umich.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.