From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: Re: url-retrieve may cause hang Date: Tue, 17 Oct 2006 18:48:16 +0100 Message-ID: References: <878xjfydq3.fsf@freemail.hu> <87vemj9eib.fsf@freemail.hu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161107343 1851 80.91.229.2 (17 Oct 2006 17:49:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2006 17:49:03 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 17 19:48:59 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 1GZt3P-00046k-AH for ged-emacs-devel@m.gmane.org; Tue, 17 Oct 2006 19:48:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZt3O-0007IG-T0 for ged-emacs-devel@m.gmane.org; Tue, 17 Oct 2006 13:48:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GZt3A-0007E8-Ln for emacs-devel@gnu.org; Tue, 17 Oct 2006 13:48:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GZt36-00074R-0r for emacs-devel@gnu.org; Tue, 17 Oct 2006 13:48:24 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZt35-000742-Og for emacs-devel@gnu.org; Tue, 17 Oct 2006 13:48:19 -0400 Original-Received: from [212.227.126.186] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GZt37-0000Vb-77 for emacs-devel@gnu.org; Tue, 17 Oct 2006 13:48:21 -0400 Original-Received: from [129.215.174.81] (helo=[129.215.174.81]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1GZt333WFi-0004QJ; Tue, 17 Oct 2006 19:48:18 +0200 In-Reply-To: <87vemj9eib.fsf@freemail.hu> Original-To: emacs- devel X-Mailer: Apple Mail (2.752.2) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:f3c9a04d49beab9fcce37ffcb55ebfb9 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:60823 Archived-At: On 17 Oct 2006, at 15:57, Magnus Henoch wrote: > I have attached my first attempt. There are two problems with it: Your patch works fine for my error case. > - DNS lookups are still synchronous. It seems we would need an > external library like GNU adns for that. It seems like I'm getting an instant error when the firewall is configured to delay/swallow UDP packets - which is good. > - There is no protocol for letting the callback know that retrieval > failed. Without this patch, the caller would immediately get an > error, Yes, signaling in your sentinel is not a good idea, as it would be difficult (impossible?) to catch the error from outside. Thanks again for reacting so quickly, and apologies that I did not report this earlier.