unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* url-retrieve may cause hang
@ 2006-10-16 22:33 David Reitter
  2006-10-17  0:42 ` Magnus Henoch
  0 siblings, 1 reply; 17+ messages in thread
From: David Reitter @ 2006-10-16 22:33 UTC (permalink / 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.

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-10-26  5:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-16 22:33 url-retrieve may cause hang David Reitter
2006-10-17  0:42 ` 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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).