[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r13236 - in trunk: . subversion/svnserve

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-03-04 02:21:50 CET

> The working code does:
>
> $ strace -etrace=socket subversion/svnserve/.libs/lt-svnserve -dr.
> socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
>
> the failing code does:
>
> $ strace -etrace=socket subversion/svnserve/.libs/lt-svnserve -dr.
> socket(PF_INET6, SOCK_STREAM, IPPROTO_IP) = -1 EAFNOSUPPORT (Address family not supported by protocol)
>
> I'm using a Linux without IPV6 support, so it's not surprising

Errr, then APR is doing something wrong.
We use APR_UNSPEC when getting host info, which lets apr decide which
family to use.
If you have no ipv6 support, the lookup shouldn't given you an ipv6
family in it's return, which causes us to create an ipv6 socket.

Nowhere do i explicitly create an ipv6 socket on my own in the code.
I'm not sure what to do here.

Is APR_HAVE_IPV6 in apr.h defined to 1 or 0 on your system.

> PF_INET6 fails.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 4 02:23:10 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.