[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Async DNS lookups
From: |
Tom Tromey |
Subject: |
Re: Async DNS lookups |
Date: |
Tue, 02 Nov 2010 12:47:36 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
>>>>> "Lars" == Lars Magne Ingebrigtsen <address@hidden> writes:
Lars> This is meant to be used to provide non-blocking domain lookups for
Lars> things that are asynchronous. Having the Lisp code wait for this async
Lars> lookup to finish would be, er, not helpful. :-)
I guess there are 2 cases.
One is make-network-process with :nowait t.
In that case it seems to me that the work could be done entirely in C
and failures reported to lisp via the sentinel function.
The other is a blocking open. In this case, Emacs is already "blocking"
in the sense that users can't do anything but wait. However, currently
users also can't C-g out of it, and other I/O is blocked waiting for
name resolution.
I think my proposed approach could solve both these scenarios.
If there's a reason to want async resolution but nothing else, then
yeah, you'd need something more complicated.
Tom
- Re: Async DNS lookups, Tom Tromey, 2010/11/01
- Re: Async DNS lookups, Ken Raeburn, 2010/11/02
- Re: Async DNS lookups, Stefan Monnier, 2010/11/02
- Re: Async DNS lookups, Lars Magne Ingebrigtsen, 2010/11/03
- Re: Async DNS lookups, Davis Herring, 2010/11/03
- Re: Async DNS lookups, Lars Magne Ingebrigtsen, 2010/11/03
- Re: Async DNS lookups, Stefan Monnier, 2010/11/03
- Re: Async DNS lookups, Andreas Schwab, 2010/11/04
- Re: Async DNS lookups, Stefan Monnier, 2010/11/04
- Re: Async DNS lookups, Ken Raeburn, 2010/11/04
- Re: Async DNS lookups, Lars Magne Ingebrigtsen, 2010/11/04
- Re: Async DNS lookups, Davis Herring, 2010/11/04