public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "nr at eecs dot harvard dot edu" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/3847] Request for getaddrinfo to search IPv4 before IPv6 when family is PF_UNSPEC
Date: Tue, 09 Jan 2007 06:02:00 -0000	[thread overview]
Message-ID: <20070109060213.792.qmail@sourceware.org> (raw)
In-Reply-To: <20070109010946.3847.nr@eecs.harvard.edu>


------- Additional Comments From nr at eecs dot harvard dot edu  2007-01-09 06:02 -------
Subject: Re:  Request for getaddrinfo to search IPv4 before IPv6 when family is PF_UNSPEC 

 > ------- Additional Comments From drepper at redhat dot com  2007-01-09
 > 01:25 ------- Not only do you not understand the code, you have not even
 > looked at the latest version of the file.

Thank you for your kind remarks.  I apologize for filing a request
against the wrong file.  I examined the latest version of the file
which is approved by the Debian people, because using the Debian libc6
is the only way for me to guarantee compatibility with hundreds of the
Debian packages that I use.

I'm puzzled by your thought that I don't understand the code.
It sure looks to me as if the while loop is trying each element
of the gaih array that is compatible with hints->ai_family.
And I did verify with gdb that this is the call that causes my machine
to sit and time out for 5 seconds, twice.  

Having downloaded version 2.5 and looked there, I guarantee I don't
understand that code.  But I've made a pass through it, and it's
become clear to me that I don't understand the specification of
getaddrinfo(3).  Neither the man page nor RFC 2553 have enlightened me
on this point, but perhaps you will be kind enough to do so: is
getaddrinfo() required to return a list containing *every* possible
protocol, family, and socket type available for the requested
host/service pair?  And if so, is there any way for me to configure
glibc version 2.5 to tell it that I wish PF_INET6 to be considered
completely and permanently unavailable?  If not, that's obviously the
request I should file.


Norman Ramsey

 >            What    |Removed                     |Added
 > ----------------------------------------------------------------------------
 >              Status|NEW                         |RESOLVED
 >          Resolution|                            |INVALID
 > 
 > http://sourceware.org/bugzilla/show_bug.cgi?id=3847


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3847

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


      parent reply	other threads:[~2007-01-09  6:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-09  1:09 [Bug libc/3847] New: " nr at eecs dot harvard dot edu
2007-01-09  1:25 ` [Bug libc/3847] " drepper at redhat dot com
2007-01-09  6:02 ` nr at eecs dot harvard dot edu [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=20070109060213.792.qmail@sourceware.org \
    --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).