all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
Subject: url-retrieve may cause hang
Date: Mon, 16 Oct 2006 23:33:20 +0100	[thread overview]
Message-ID: <E7F43645-4FE6-4103-8879-F554E28C8DD9@gmail.com> (raw)

url-retrieve may cause Emacs to hang for around 3 minutes when the  
firewall is configured to delay packets. This is unwanted behavior,  
as url-retrieve claims to work asynchronously.

Example:

Configure firewall to delay (rather than deny) packets:

sudo ipfw add 1 pipe 7 tcp from any to any 80

(url-retrieve  "http://www.google.com" 'print)
% or use url-http for this

-> Hang until time-out (several minutes).

You may have to install and/or turn on the ipfw firewall on your  
system to reproduce.

I can produce this with an up-to-date CVS Emacs (Carbon port) on OS  
X, a BSD like system that comes with the "ipfw" firewall - I don't  
have root privileges on my GNU/Linux machine to try it out there.

You may rightfully argue that the above way to set up a firewall is  
flawed. However, I keep getting bug reports from people inside the  
".mil" domain who seem to have a firewall that swallows all outgoing  
traffic. I don't know what their firewall setup is, but the above  
rule leads to the same symptoms for me.


PS.:
sudo ipfw del 1 pipe 7 tcp from any to any 80
to get rid of the block.

             reply	other threads:[~2006-10-16 22:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-16 22:33 David Reitter [this message]
2006-10-17  0:42 ` url-retrieve may cause hang Magnus Henoch
2006-10-17  8:05   ` Kim F. Storm
2006-10-17 14:57     ` Magnus Henoch
2006-10-17 15:38       ` Stefan Monnier
2006-10-23  2:01         ` Magnus Henoch
2006-10-23 11:45           ` Richard Stallman
2006-10-25 14:22             ` Chong Yidong
2006-10-25 23:00               ` Magnus Henoch
2006-10-26  5:23               ` Richard Stallman
2006-10-17 16:24       ` Magnus Henoch
2006-10-17 17:48       ` David Reitter
2006-10-18 16:23         ` Michaël Cadilhac
2006-10-18  5:12       ` Richard Stallman
2006-10-18  9:03         ` Magnus Henoch
2006-10-18 14:01           ` Stefan Monnier
2006-10-18 17:54           ` Richard Stallman

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=E7F43645-4FE6-4103-8879-F554E28C8DD9@gmail.com \
    --to=david.reitter@gmail.com \
    /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.