You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@locus.apache.org on 2000/12/17 14:12:12 UTC
cvs commit: apr CHANGES aclocal.m4
trawick 00/12/17 05:12:12
Modified: . CHANGES aclocal.m4
Log:
Tighten up the check for getaddrinfo(). If it can't figure out
the appropriate address family for 127.0.0.1, it fails.
Unfortunately, Tru64 fails this test so we won't do IPv6 on
Tru64.
Revision Changes Path
1.25 +5 -0 apr/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apr/CHANGES,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- CHANGES 2000/12/17 03:35:39 1.24
+++ CHANGES 2000/12/17 13:12:11 1.25
@@ -1,4 +1,9 @@
Changes with APR b1
+ *) Tighten up the check for getaddrinfo(). If it can't figure out
+ the appropriate address family for 127.0.0.1, it fails.
+ Unfortunately, Tru64 fails this test so we won't do IPv6 on
+ Tru64. [Jeff Trawick]
+
*) Rename apr_opendir to apr_dir_open. [Ryan Bloom]
*) apr_snprintf()'s %pI format string now takes apr_sockaddr_t *
1.36 +1 -1 apr/aclocal.m4
Index: aclocal.m4
===================================================================
RCS file: /home/cvs/apr/aclocal.m4,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- aclocal.m4 2000/12/15 16:56:51 1.35
+++ aclocal.m4 2000/12/17 13:12:11 1.36
@@ -207,7 +207,7 @@
int error;
memset(&hints, 0, sizeof(hints));
- hints.ai_family = AF_INET;
+ hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
if (error) {
Re: cvs commit: apr CHANGES aclocal.m4
Posted by Jeff Trawick <tr...@bellsouth.net>.
trawick@locus.apache.org writes:
> trawick 00/12/17 05:12:12
>
> Modified: . CHANGES aclocal.m4
> Log:
> Tighten up the check for getaddrinfo(). If it can't figure out
> the appropriate address family for 127.0.0.1, it fails.
> Unfortunately, Tru64 fails this test so we won't do IPv6 on
> Tru64.
Note that it is easy enough to handle numeric address strings properly
and portably in apr_getaddrinfo() by writing the code ourselves.
Unfortunately, the Tru64 getaddrinfo() won't handle AF_UNSPEC with
hosts either, so writing explicit code to handle numeric address
strings is a false solution.
Yuck!
--
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...