[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: url-retrieve may cause hang

From: Stefan Monnier
Subject: Re: url-retrieve may cause hang
Date: Tue, 17 Oct 2006 11:38:42 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> - There is no protocol for letting the callback know that retrieval
>   failed.  Without this patch, the caller would immediately get an
>   error, but now the error is signalled in the sentinel.  One solution
>   would be to introduce an :error argument to the callback, similar to
>   the :redirect one.

Yes, this is a basic flaw in the design.  It would be good to fix it before
the release.  Your suggestion of extending the :redirect to include other
info sounds good.  Basically, the callback should be called with 2 args: the
list CBARGS, and a "status" which can be nil (indicating the absence of
anything noteworthy), or (:redirect URL), or (:error ERROR) where ERROR is
of the form such that it can be used in (signal (car ERROR) (cdr ERROR)).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]