all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Async DNS redux
Date: Mon, 06 Feb 2012 01:32:44 +0100	[thread overview]
Message-ID: <87ty3494yb.fsf@gnus.org> (raw)

I was reading a blog just now, and apparently CloudFlare has a hickup:

larsi@rusty:~/mgnus$ time host www.thisiscolossal.com
www.thisiscolossal.com is an alias for www.thisiscolossal.com.cdn.cloudflare.net.
www.thisiscolossal.com.cdn.cloudflare.net is an alias for cf-ssl4799-protected-www.thisiscolossal.com.cdn.cloudflare.net.
cf-ssl4799-protected-www.thisiscolossal.com.cdn.cloudflare.net has address 141.101.125.141
cf-ssl4799-protected-www.thisiscolossal.com.cdn.cloudflare.net has address 141.101.126.141
;; connection timed out; no servers could be reached
;; connection timed out; no servers could be reached

real	0m20.134s
user	0m0.012s
sys	0m0.000s

This made using Emacs impossible.  The resolving is totally synchronous,
and there were many pictures from this host.  Every one halting Emacs
for 20 seconds.

I'm going to try to fix up url-retrieve-queue somewhat -- if resolving
failed for host foo, then just remove all entries from the queue that
are trying to do the same.  Hm.  But since it fetches a lot of stuff in
parallel, that may not be trivial.  Uhm...

Anyway, what I wanted to ask was whether anybody has had any further
ideas on async DNS resolving in Emacs?  For stuff like this to work in a
satisfactory manner, we really need a kind of
(dns-resolve "foo.bar" 'callback) call in Emacs.

Does gnulib or anything have anything handy here?  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Sent from my Rome




             reply	other threads:[~2012-02-06  0:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06  0:32 Lars Ingebrigtsen [this message]
2012-02-06  1:15 ` Async DNS redux Lars Ingebrigtsen
2012-02-06  3:01 ` Leo
2012-02-06 14:44 ` Stefan Monnier
2012-02-06 21:12   ` Lars Ingebrigtsen
2012-02-07  3:05     ` Stefan Monnier
2012-02-07  3:24       ` Lars Ingebrigtsen
2012-02-07 17:39         ` Stefan Monnier

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=87ty3494yb.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    /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.