You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Connection problems with IPv6 link-local addresses and jdk < 7 #267
Because of a jdk bug its not possible to connect to an endpoint via IPv6 link-local addresses when using a jdk version < 7. We should apply a workaround for this.
I have bad news. I have tested the workaround this patch uses against a few linux distros and can confirm that it only appears to work for older distributions. It also will break MacOSX, since it requires the connect address to contain the % zone specifier.
I recommend reverting the workaround (or at least selectively enabling it for just Linux, and letting users know not all distros are covered).
Ah it appears this was not the complete "hack". The problem with just stripping the zone id is that it will prevent its purpose, which is to distinguish between multiple NICs that have the same link-local address. The full "hack" was to set the source binding address to use the non-stripped version, and the destination to use the stripped version. This hack fails on Fedora 16, 15, and updated 14, but it works on all versions of RHEL, and some versions of debian I had tested. Unfortunately the hack also breaks MacOSX/Darwin (you need the scope in the link local), and it probably breaks other platforms.
A system property is a good idea, although you might want to do the full hack. I'm not sure its worth it though. There might be other workarounds but it would take quite a bit of research, and you would have to selectively enable them per platform combination.
I see... So I guess we should just make it configurable via System property or maybe remove the "workaround" all together and tell people to use java7 if they want to use ipv6 link-local addresses.
Yeah we are removing it everywhere we have it elsewhere and are just going to tell our users about the jdk bug, and the jdks we know that work. If I can find more time I'll try to research another workaround, but this could lead to a lot of variations so might not be worth it.
Activity
Add workaround for connection problems with IPv6 link-local addresses…
Add workaround for connection problems with IPv6 link-local addresses…
Add workaround for connection problems with IPv6 link-local addresses…
Add workaround for connection problems with IPv6 link-local addresses…
Use gathering writes if java version >= 7 and the ChannelBuffer is an…
Use gathering writes in CompositeChannelBuffer if jdk >= 7. See #267
Correctly handle the stripping of the zoneId / scopeId in all cases. …
Correctly handle the stripping of the zoneId / scopeId in all cases. …
n1hility commentedon Apr 30, 2012
I have bad news. I have tested the workaround this patch uses against a few linux distros and can confirm that it only appears to work for older distributions. It also will break MacOSX, since it requires the connect address to contain the % zone specifier.
I recommend reverting the workaround (or at least selectively enabling it for just Linux, and letting users know not all distros are covered).
normanmaurer commentedon May 1, 2012
Thats really bad.. I tested it with fedora 16. Maybe we should then allow to enable this workaround with a System Property . WDYT?
n1hility commentedon May 1, 2012
Ah it appears this was not the complete "hack". The problem with just stripping the zone id is that it will prevent its purpose, which is to distinguish between multiple NICs that have the same link-local address. The full "hack" was to set the source binding address to use the non-stripped version, and the destination to use the stripped version. This hack fails on Fedora 16, 15, and updated 14, but it works on all versions of RHEL, and some versions of debian I had tested. Unfortunately the hack also breaks MacOSX/Darwin (you need the scope in the link local), and it probably breaks other platforms.
A system property is a good idea, although you might want to do the full hack. I'm not sure its worth it though. There might be other workarounds but it would take quite a bit of research, and you would have to selectively enable them per platform combination.
normanmaurer commentedon May 1, 2012
Isn't that what we do? We only use the stripped version for the remote address .
4 remaining items
n1hility commentedon May 1, 2012
Ah ok reading the entire file I see that now. Any chance you were using openjdk on F16, that one seems to work with (and without) the workaround?
normanmaurer commentedon May 1, 2012
Yes I was using openjdk ;)
n1hility commentedon May 1, 2012
Ah now try the evil proprietary oracle sun jdk :)
normanmaurer commentedon May 1, 2012
I see... So I guess we should just make it configurable via System property or maybe remove the "workaround" all together and tell people to use java7 if they want to use ipv6 link-local addresses.
n1hility commentedon May 1, 2012
Yeah I think either approach is fine. I'll leave it to you to decide whats best. I only wanted to warn you that we were wrong about the workaround :(
normanmaurer commentedon May 1, 2012
I guess removing is the best. What will you do for jboss-as ? Will removing work for you ?
n1hility commentedon May 1, 2012
Yeah we are removing it everywhere we have it elsewhere and are just going to tell our users about the jdk bug, and the jdks we know that work. If I can find more time I'll try to research another workaround, but this could lead to a lot of variations so might not be worth it.
normanmaurer commentedon May 1, 2012
Ok I guess I will just remove it in netty too.. Thanks for all your efforts !
Remove workaround for ipv6 link-localaddresses as it not work on most…
Remove workaround for ipv6 link-localaddresses as it not work on most…
Remove workaround for ipv6 link-localaddresses as it not work on most…
normanmaurer commentedon May 2, 2012
@n1hility thaks for the details. I removed the workaround...
Fix test race introduced by 22dffdf (netty#267)
QPACK: Allow stream cancellation even if the dynamic table was config… (