You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Hudson <gh...@MIT.EDU> on 2005/09/23 21:58:59 UTC
Re: Regression in svnserve: IPv6 causes IPv4 not to work
[was: Branching for 1.3.]
On Fri, 2005-09-23 at 23:40 +0200, Sigfred Håversen wrote:
> If you want more than one socket I see no reason not to support n>1 sockets,
> and give users the choice of using more than one --listen-host as well.
Sounds good to me.
> But this is not what my posts has been about.
But it does seem like a better solution to the problem.
> My suggestion, like the the poster in May, was quite simply to have an
> option whether or not to use IPv6 as a user option; not to have it
> forced upon us with no choice what so ever.
(1) Do either you or the poster in May have any active desire to not
accept IPv6 connections, or are you only really motivated by it breaking
your IPv4 listening?
(2) Doesn't --listen-host=127.0.0.1 solve your problem?
Forgive me if there's something I'm missing. "We should have an option
to disable feature X because it's causing a bug for people who don't
care about feature X" is not a very compelling argument; fixing bugs is
always preferrable to adding options.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Regression in svnserve: IPv6 causes IPv4
not to work [was: Branching for 1.3.]
Posted by Daniel Berlin <db...@dberlin.org>.
On Fri, 2005-09-23 at 22:09 -0400, Greg Hudson wrote:
> On Fri, 2005-09-23 at 21:54 -0400, Michael Sweet wrote:
> > > Even if we set IPV6_V6ONLY on the v6 socket?
> >
> > Yes, because on OpenBSD (and perhaps others of the *BSD lineage)
> > the IPV6_V6ONLY socket option is apparently read-only...
>
> Yes, but I'm talking about setting it to 1, so that we can create the
> two separate sockets. On OpenBSD it's read-only, but it's always set to
> 1.
>
> > > (If the OS does not define
> > > IPV6_V6ONLY, then I think we can safely assume that it will allow v4 and
> > > v6 connections on the same socket.)
> >
> > No, actually, I don't think that is the case.
>
> Okay. So we create an IPV6 socket, set IPV6_V6ONLY to 1 if possible,
> then create an IPV4 socket. If the second bind call fails with an
> address-in-use error, we assume the V6 socket is handling V4 connections
> and the stack was incapable of turning off v4 mappings.
Not that i expect this to happen in time for 1.3 to branch, but it would
be nice to include this functionality in APR (IE something to simply
create socket(s) for an ipv4 and ipv6 listening on a given address, and
return the number of sockets created + an array of 1 or more sockets).
Also, if you ever find out who decided not to standardize this one way
or the other due to lack of consensus (consequently screwing *all future
implementors and developers instead of one or two early ones*), let me
know. I'd like to punch him/her in the face.
:)
>
> For reference, I've included a test program which successfully creates
> and binds to v6 and v4 sockets on the any address under Linux (RHEL 4).
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Regression in svnserve: IPv6 causes IPv4 not to work [was: Branching
for 1.3.]
Posted by Michael Sweet <mi...@easysw.com>.
Greg Hudson wrote:
> On Fri, 2005-09-23 at 21:54 -0400, Michael Sweet wrote:
>
>>>Even if we set IPV6_V6ONLY on the v6 socket?
>>
>>Yes, because on OpenBSD (and perhaps others of the *BSD lineage)
>>the IPV6_V6ONLY socket option is apparently read-only...
>
>
> Yes, but I'm talking about setting it to 1, so that we can create the
> two separate sockets. On OpenBSD it's read-only, but it's always set to
> 1.
OK, gotcha.
>> > (If the OS does not define
>>
>>>IPV6_V6ONLY, then I think we can safely assume that it will allow v4 and
>>>v6 connections on the same socket.)
>>
>>No, actually, I don't think that is the case.
>
>
> Okay. So we create an IPV6 socket, set IPV6_V6ONLY to 1 if possible,
> then create an IPV4 socket. If the second bind call fails with an
> address-in-use error, we assume the V6 socket is handling V4 connections
> and the stack was incapable of turning off v4 mappings.
That strategy should work well.
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Publishing Software http://www.easysw.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Regression in svnserve: IPv6 causes IPv4
not to work [was: Branching for 1.3.]
Posted by Greg Hudson <gh...@MIT.EDU>.
On Fri, 2005-09-23 at 21:54 -0400, Michael Sweet wrote:
> > Even if we set IPV6_V6ONLY on the v6 socket?
>
> Yes, because on OpenBSD (and perhaps others of the *BSD lineage)
> the IPV6_V6ONLY socket option is apparently read-only...
Yes, but I'm talking about setting it to 1, so that we can create the
two separate sockets. On OpenBSD it's read-only, but it's always set to
1.
> > (If the OS does not define
> > IPV6_V6ONLY, then I think we can safely assume that it will allow v4 and
> > v6 connections on the same socket.)
>
> No, actually, I don't think that is the case.
Okay. So we create an IPV6 socket, set IPV6_V6ONLY to 1 if possible,
then create an IPV4 socket. If the second bind call fails with an
address-in-use error, we assume the V6 socket is handling V4 connections
and the stack was incapable of turning off v4 mappings.
For reference, I've included a test program which successfully creates
and binds to v6 and v4 sockets on the any address under Linux (RHEL 4).
Re: Regression in svnserve: IPv6 causes IPv4 not to work [was: Branching
for 1.3.]
Posted by Michael Sweet <mi...@easysw.com>.
Greg Hudson wrote:
> ...
>>Because on OS's that *do* allow both IPv4 and IPv6 connections on
>>the same listening socket, you *can't* bind two separate sockets on
>>the "any" address.
>
>
> Even if we set IPV6_V6ONLY on the v6 socket?
Yes, because on OpenBSD (and perhaps others of the *BSD lineage)
the IPV6_V6ONLY socket option is apparently read-only...
> (If the OS does not define
> IPV6_V6ONLY, then I think we can safely assume that it will allow v4 and
> v6 connections on the same socket.)
No, actually, I don't think that is the case. Before IPV6_V6ONLY,
whether an IPv6 socket would accept IPv4 connections was undefined
by the standards gods. Apparently (I'm going off of the *BSD list
archives here) when they added the IPV6_V6ONLY socket option, some
developers (mainly commercial UNIX vendors) had already allowed
IPv4 over IPv6, while other developers did not. They "compromised"
by saying that IPV6_V6ONLY may be read-only so that no one had to
change their implementations, just add the socket option so that
developers could automatically handle things...
In short, if setting IPV6_V6ONLY to 0 fails, or if IPV6_V6ONLY is
not available, then you need to have a second listen socket bound
to the IPv4 "any" address (assuming that you want that).
--
______________________________________________________________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Publishing Software http://www.easysw.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Regression in svnserve: IPv6 causes IPv4 not
to work [was: Branching for 1.3.]
Posted by Greg Hudson <gh...@MIT.EDU>.
On Sat, 2005-09-24 at 01:07 +0200, Sigfred Håversen wrote:
> Why can't you simply say that you won't fix this regression for
> OpenBSD instead of trying to side track this issue? A simple "No we
> won't fix this regression" works nicely.
You can calm down, stop trying to put words into my mouth and falsely
accuse me of sidetracking the issue, and address my arguments directly,
or you can remain antagonized and accomplish nothing. Your choice.
I would love to fix this regression, but I do not want to add an
extraneous user-facing feature to svnserve if there is another way to go
about it.
Michael Sweet wrote:
> Because on OS's that *do* allow both IPv4 and IPv6 connections on
> the same listening socket, you *can't* bind two separate sockets on
> the "any" address.
Even if we set IPV6_V6ONLY on the v6 socket? (If the OS does not define
IPV6_V6ONLY, then I think we can safely assume that it will allow v4 and
v6 connections on the same socket.)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Regression in svnserve: IPv6 causes IPv4 not to work [was: Branching for 1.3.]
Posted by kf...@collab.net.
Sigfred Håversen <bs...@mumak.com> writes:
> Why can't you simply say that you won't fix this regression for
> OpenBSD instead of trying to side track this issue? A simple "No we
> won't fix this regression" works nicely.
Where was Greg trying to side track anything?
He acknowledged the bug, and rejected one suggested "fix" on the
grounds that it was not the right fix. Then he proposed a better fix
and asked for comments. At every step, he explained his reasoning
clearly, and asked to be corrected if he'd misunderstood anything.
One could hardly ask for more constructive behavior. If you find
yourself annoyed by it, the problem lies in you, not Greg.
-Karl
--
www.collab.net <> CollabNet | Distributed Development On Demand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Regression in svnserve: IPv6 causes IPv4 not to work [was: Branching
for 1.3.]
Posted by Sigfred Håversen <bs...@mumak.com>.
Greg Hudson wrote:
> On Sat, 2005-09-24 at 00:23 +0200, Sigfred Håversen wrote:
>
>>You'll find it informative to read the previous posts in this thread.
>
> [...]
>
>>Read the thread.
>
>
> I have. If I missed something important, I'm sorry, but it's faster for
> you to point out what that is than for me to go back and reread the
> whole thing.
>
Why can't you simply say that you won't fix this regression for
OpenBSD instead of trying to side track this issue? A simple "No we
won't fix this regression" works nicely.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Regression in svnserve: IPv6 causes IPv4 not to
work [was: Branching for 1.3.]
Posted by Greg Hudson <gh...@MIT.EDU>.
On Sat, 2005-09-24 at 00:23 +0200, Sigfred Håversen wrote:
> You'll find it informative to read the previous posts in this thread.
[...]
> Read the thread.
I have. If I missed something important, I'm sorry, but it's faster for
you to point out what that is than for me to go back and reread the
whole thing.
>> (2) Doesn't --listen-host=127.0.0.1 solve your problem?
> Nope, --listen-host=0.0.0.0 is better, unless, of course, you only
> want to listen to localhost.
Fine, but this doesn't answer my question.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Regression in svnserve: IPv6 causes IPv4 not to work [was: Branching
for 1.3.]
Posted by Sigfred Håversen <bs...@mumak.com>.
Greg Hudson wrote:
> (1) Do either you or the poster in May have any active desire to not
> accept IPv6 connections, or are you only really motivated by it breaking
> your IPv4 listening?
You'll find it informative to read the previous posts in this thread.
> (2) Doesn't --listen-host=127.0.0.1 solve your problem?
Nope, --listen-host=0.0.0.0 is better, unless, of course, you only
want to listen to localhost.
> Forgive me if there's something I'm missing. "We should have an option
> to disable feature X because it's causing a bug for people who don't
> care about feature X" is not a very compelling argument; fixing bugs is
> always preferrable to adding options.
>
Read the thread.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org