public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jvb127 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug network/14307] getaddrinfo() sends superfluous DNS requests in x86_64 programs for certain hostnames
Date: Sat, 30 Jun 2012 02:23:00 -0000 [thread overview]
Message-ID: <bug-14307-131-6uffPJWPjt@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-14307-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14307
--- Comment #3 from Jeroen van Bemmel <jvb127 at gmail dot com> 2012-06-30 02:23:01 UTC ---
(In reply to comment #2)
> Reproducible on HEAD.
>
> The size of the response is what seems to be causing the second query -- 6 or
> more seems to be the trigger. My initial guess was that the first lookup led to
> an ERANGE internally, resulting in the second query, but that should have
> happened for 32-bit as well. So this might well be something else. This has
> nothing to do with whether there is a CNAME in the response.
You are correct that __gethostbyname2_r in sysdeps/posix/getaddrinfo.c returns
ERANGE the first time when using a 512-byte buffer, in 64-bit mode. It is then
retried with a 1024-byte buffer, and the call succeeds
However, the same call in 32-bit mode also uses a 512-byte buffer, and does not
return ERANGE.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
next prev parent reply other threads:[~2012-06-30 2:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-29 0:04 [Bug network/14307] New: getaddrinfo() triggers duplicate DNS requests when answer contains CNAME jvb127 at gmail dot com
2012-06-29 6:05 ` [Bug network/14307] " jvb127 at gmail dot com
2012-06-29 6:10 ` [Bug network/14307] getaddrinfo() sends superfluous DNS requests in x86_64 programs " jvb127 at gmail dot com
2012-06-29 11:10 ` siddhesh at redhat dot com
2012-06-29 12:30 ` siddhesh at redhat dot com
2012-06-29 16:06 ` [Bug network/14307] getaddrinfo() sends superfluous DNS requests in x86_64 programs for certain hostnames jvb127 at gmail dot com
2012-06-30 2:23 ` jvb127 at gmail dot com [this message]
2012-06-30 3:16 ` jvb127 at gmail dot com
2012-06-30 5:35 ` jvb127 at gmail dot com
2012-06-30 15:09 ` jvb127 at gmail dot com
2012-07-02 2:22 ` siddhesh at redhat dot com
2012-07-12 6:05 ` siddhesh at redhat dot com
2014-02-16 19:32 ` jackie.rosen at hushmail dot com
2014-05-28 19:42 ` schwab at sourceware dot org
2014-06-18 4:31 ` fweimer at redhat dot com
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=bug-14307-131-6uffPJWPjt@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=glibc-bugs@sources.redhat.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).