all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
To: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: [RFC] automatically retrying network connections
Date: Sat, 21 Jul 2018 16:21:12 +0100	[thread overview]
Message-ID: <CAKDRQS6XWvtdtSqW1=UmNjXRAm7N3qccMfEQjx+L5SufTkF-Lw@mail.gmail.com> (raw)
In-Reply-To: <87sh4dfz8r.fsf@gmail.com>

On Fri, Jul 20, 2018 at 9:06 PM, Robert Pluim <rpluim@gmail.com> wrote:
> Hi,
>
> one of the consequences of asking the user questions during network
> connection setup is that the server they're trying to connect to might
> have decided to close the connection by the time they've finished
> answering.
>
> This suggests that there should be an option to retry the connection
> in such a situation. I have a trial implementation involving a new
> parameter to open-network-stream to request retrying, but was
> wondering if it might not be better if it was a globally enabled
> default. Iʼll note that various browsers retry failing connections
> automatically.
>
> Thanks
>
> Robert
>

I have a related but different issue, and I think I'm looking at a
different solution from an option that automatically retries at layer
4.

The OCSP RFC I'm implementing specifies a response status type
`tryLater`, this is on layer 7. What I really need is some kind of
promise/future primitive or await async built into Emacs so I don't
have to block the other OCSP requests that I need to make while I'm
waiting for a good answer for this one, or worse, block the UI. I'm
currently using generators to alleviate UI blocking a bit, but I
haven't found a good answer to making async network processes and then
joining their results later. (short of writing a giant block of
callback spagetti anyway...)

P.S. Thanks a lot for exposing `getaddrinfo`, I haven't tried it out
yet. I'll get it ASAP.



  reply	other threads:[~2018-07-21 15:21 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-20 20:06 [RFC] automatically retrying network connections Robert Pluim
2018-07-21 15:21 ` Jimmy Yuen Ho Wong [this message]
2018-07-22 10:28   ` Lars Ingebrigtsen
2018-07-22 14:28     ` Jimmy Yuen Ho Wong
2018-07-22 16:44       ` Michael Albinus
2018-07-22 23:24         ` Jimmy Yuen Ho Wong
2018-07-22 11:18   ` Robert Pluim
2018-07-22 11:43     ` Lars Ingebrigtsen
2018-07-22 23:29       ` Jimmy Yuen Ho Wong
2018-07-23  7:41         ` Andreas Schwab
2018-07-22 10:24 ` Lars Ingebrigtsen
2018-07-22 10:41   ` Robert Pluim
2018-07-22 10:59     ` Lars Ingebrigtsen
2018-07-22 14:08       ` Robert Pluim
2018-07-22 14:29         ` Lars Ingebrigtsen
2018-07-22 13:32   ` Andy Moreton
2018-07-22 13:35     ` Lars Ingebrigtsen
2018-07-22 23:27     ` Jimmy Yuen Ho Wong
2018-07-23  8:23       ` Robert Pluim
2018-07-23 20:57         ` Jimmy Yuen Ho Wong
2018-07-22 13:37   ` Noam Postavsky
2018-07-22 13:41     ` Lars Ingebrigtsen
2018-07-22 23:26       ` Jimmy Yuen Ho Wong

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='CAKDRQS6XWvtdtSqW1=UmNjXRAm7N3qccMfEQjx+L5SufTkF-Lw@mail.gmail.com' \
    --to=wyuenho@gmail.com \
    --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.