[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Asynchronous DNS
From: |
Lars Ingebrigtsen |
Subject: |
Re: Asynchronous DNS |
Date: |
Mon, 08 Feb 2016 14:40:06 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Lars Ingebrigtsen <address@hidden> writes:
> It would be better if the application code didn't have to care, but that
> means that either all those functions will have to block (getting us
> back to square one, basically), or they'll have to set up a queue of
> pending actions to be taken, which I think is rather too ambitious.
And, by the way, as I think I've said before: The following code will
give a backtrace today:
(setq proc (make-network-process :name "foo"
:buffer (generate-new-buffer "*foo*")
:host "localhost"
:nowait t
:service port)))
(process-send-string proc "echo bar")
with
Process foo not running
because it's still in 'connect.
For even more asynchronicity in the :nowait 'immediate case, there are
other functions that will also fail, like set-process-coding-system,
that do not fail with :nowait t. And I think that's fine. When you're
doing async programming, you have to adhere to the rules provided by the
asynchronous sockets, and that you've explicitly asked for.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Re: Asynchronous DNS, (continued)
- Re: Asynchronous DNS, Eli Zaretskii, 2016/02/05
- Re: Asynchronous DNS, Lars Ingebrigtsen, 2016/02/05
- Re: Asynchronous DNS, Lars Ingebrigtsen, 2016/02/06
- Re: Asynchronous DNS, Eli Zaretskii, 2016/02/06
- Re: Asynchronous DNS, Alain Schneble, 2016/02/06
- Re: Asynchronous DNS, Lars Ingebrigtsen, 2016/02/06
- Re: Asynchronous DNS, Alain Schneble, 2016/02/07
- Re: Asynchronous DNS, Eli Zaretskii, 2016/02/07
- Re: Asynchronous DNS, Alain Schneble, 2016/02/07
- Re: Asynchronous DNS, Lars Ingebrigtsen, 2016/02/07
- Re: Asynchronous DNS,
Lars Ingebrigtsen <=
- Re: Asynchronous DNS, Alain Schneble, 2016/02/08
- Re: Asynchronous DNS, Lars Ingebrigtsen, 2016/02/08
- Re: Asynchronous DNS, Alain Schneble, 2016/02/08
- Re: Asynchronous DNS, Lars Ingebrigtsen, 2016/02/08
- Re: Asynchronous DNS, Alain Schneble, 2016/02/09
- Re: Asynchronous DNS, Lars Ingebrigtsen, 2016/02/09
- Re: Asynchronous DNS, Eli Zaretskii, 2016/02/09
- Re: Asynchronous DNS, Alain Schneble, 2016/02/09
- Re: Asynchronous DNS, Eli Zaretskii, 2016/02/09
- Re: Asynchronous DNS, Lars Ingebrigtsen, 2016/02/09