From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: url-retrieve may cause hang Date: Wed, 18 Oct 2006 01:12:34 -0400 Message-ID: References: <878xjfydq3.fsf@freemail.hu> <87vemj9eib.fsf@freemail.hu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1161148843 18950 80.91.229.2 (18 Oct 2006 05:20:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Oct 2006 05:20:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 18 07:20:42 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ga3r0-00060A-Nl for ged-emacs-devel@m.gmane.org; Wed, 18 Oct 2006 07:20:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ga3qz-0003Ox-SY for ged-emacs-devel@m.gmane.org; Wed, 18 Oct 2006 01:20:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ga3jI-0003du-Ma for emacs-devel@gnu.org; Wed, 18 Oct 2006 01:12:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ga3jH-0003cl-Q5 for emacs-devel@gnu.org; Wed, 18 Oct 2006 01:12:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ga3jH-0003cD-C7 for emacs-devel@gnu.org; Wed, 18 Oct 2006 01:12:35 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ga3jH-0004nO-CD for emacs-devel@gnu.org; Wed, 18 Oct 2006 01:12:35 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Ga3jG-0002fu-Kt; Wed, 18 Oct 2006 01:12:34 -0400 Original-To: Magnus Henoch In-reply-to: <87vemj9eib.fsf@freemail.hu> (message from Magnus Henoch on Tue, 17 Oct 2006 16:57:16 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60862 Archived-At: I have attached my first attempt. There are two problems with it: - DNS lookups are still synchronous. It seems we would need an external library like GNU adns for that. That means it fixes only one problem out of two. But it would still be useful. - 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. Is that too risky for now?