unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Async DNS lookups
@ 2010-10-30 11:57 Lars Magne Ingebrigtsen
  2010-10-30 13:11 ` Julien Danjou
                   ` (4 more replies)
  0 siblings, 5 replies; 25+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-30 11:57 UTC (permalink / raw)
  To: emacs-devel

I've been trying to chase down reasons for why url-retrieve sometimes
makes Emacs totally unresponsive, and I suspect that it has to do with
DNS lookups.

Gnus is triggering url-retrieve asynchronously from a process filter.
url-retrieve then has to resolve the domain name, of course, and then do
the HTTP stuff.  If the DNS resolving fails, or it's slow, then Emacs
will hang entirely while resolving the domain names.

Which is bad.

I don't really see any easy fixes for this with Emacs' feature set at
the moment.  A process filter will block Emacs' "main thread", and it
needs to resolve the addresses, so...

However, we could side-step the issue by either:

1) implement a C-level resolving functionality that has a callback that
will be called upon resolving the address.  This seems hard.

2) add a callback mechanism to dns.el.  Somebody kah-razy has already
implemented a resolver in Emacs Lisp, so that seems like a possible
option.  But can you have process filters/sentinels on UDP processes?

Before I do anything here, does anybody have any thoughts on this issue?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

end of thread, other threads:[~2010-11-04 21:32 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-30 11:57 Async DNS lookups Lars Magne Ingebrigtsen
2010-10-30 13:11 ` Julien Danjou
2010-10-30 13:34 ` Ted Zlatanov
2010-10-30 15:40 ` Helmut Eller
2010-10-31  4:01 ` Stefan Monnier
2010-10-31 17:16   ` Lars Magne Ingebrigtsen
2010-11-01 16:09 ` Tom Tromey
2010-11-02 16:15   ` Ken Raeburn
2010-11-02 16:29     ` Lars Magne Ingebrigtsen
2010-11-02 17:28       ` Stefan Monnier
2010-11-02 18:13         ` Lars Magne Ingebrigtsen
2010-11-02 18:30           ` Tom Tromey
2010-11-02 18:28             ` Lars Magne Ingebrigtsen
2010-11-02 18:47               ` Tom Tromey
2010-11-02 21:28           ` Stefan Monnier
2010-11-03 19:46             ` Lars Magne Ingebrigtsen
2010-11-03 21:29               ` Davis Herring
2010-11-03 21:46                 ` Lars Magne Ingebrigtsen
2010-11-04  2:24                   ` Stefan Monnier
2010-11-04  8:27                     ` Andreas Schwab
2010-11-04 14:15                       ` Stefan Monnier
2010-11-04 16:09                         ` Ken Raeburn
2010-11-04 19:49                         ` Lars Magne Ingebrigtsen
2010-11-04 20:40                         ` Davis Herring
2010-11-04 21:32                           ` Stefan Monnier

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).