mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Stefan Sedich <stefan.sedich@gmail.com>
To: musl@lists.openwall.com
Subject: Re: Re: [PATCH v2] attempts option not being respected in resolv.conf
Date: Sun, 23 Apr 2017 02:42:31 +0000	[thread overview]
Message-ID: <CACOXvnh-TC0duegHkimPuEv_jx1WhUHZO=16p4e5DytAh9H_Pw@mail.gmail.com> (raw)
In-Reply-To: <20170422223219.GJ17319@brightrain.aerifal.cx>

[-- Attachment #1: Type: text/plain, Size: 1667 bytes --]

Thanks Rich,

I will mull over this and play around with glibc a bit more to see if I can
come up with something that gives us that ideal middle ground, I do agree
with your initial idea though it sounds like it could behave a little bit
closer to glibc but I will dig more and see.



Stefan

On Sat, Apr 22, 2017 at 3:32 PM Rich Felker <dalias@libc.org> wrote:

> On Tue, Apr 04, 2017 at 02:08:08AM +0000, Stefan Sedich wrote:
> > One thing I have found though is that the way the retry logic works if I
> > want to retry ever 1 second for a total of 5 times I need to set it to
> > 'options timeout:5 attempts:5', not sure if someone who knows this area
> > well can comment but it appears to create a retry_interval based on
> > timeout/attempts, which as far as I understand it is different to how it
> > works with glibc where I can set timeout:1 attempts:5 and it does as I
> > expect.
>
> The man page documents timeout as "amount of time the resolver will
> wait for a response from a remote name server before retrying the
> query via a different name server". Since musl does not cycle through
> servers, but tries them all concurrently, this definition does not
> make sense, so we have to find a reasonable way to interpret the
> options, but I agree it might be "wrong" right now. It might be that,
> rather than retry_interval being timeout/attempts, retry_interval
> should be timeout, and the total timeout should be timeout*attempts.
> We really should look at the glibc behavior and see how it scales with
> different settings and numbers of nameservers and try to make the
> behavior somehow comparable.
>
> BTW sorry I missed your V2.
>
> Rich
>

[-- Attachment #2: Type: text/html, Size: 2102 bytes --]

      reply	other threads:[~2017-04-23  2:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04  0:36 Stefan Sedich
2017-04-04  2:08 ` Stefan Sedich
2017-04-17 20:41   ` Stefan Sedich
2017-04-22 22:32   ` Rich Felker
2017-04-23  2:42     ` Stefan Sedich [this message]

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='CACOXvnh-TC0duegHkimPuEv_jx1WhUHZO=16p4e5DytAh9H_Pw@mail.gmail.com' \
    --to=stefan.sedich@gmail.com \
    --cc=musl@lists.openwall.com \
    /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 public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).