Skip to content

Connection problems with IPv6 link-local addresses and jdk < 7 #267

Closed

Description

Activity

  1. n1hility commented on Apr 30, 2012

    @n1hility

    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).

  2. normanmaurer commented on May 1, 2012

    @normanmaurer
    MemberAuthor

    Thats really bad.. I tested it with fedora 16. Maybe we should then allow to enable this workaround with a System Property . WDYT?

  3. n1hility commented on May 1, 2012

    @n1hility

    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.

  4. normanmaurer commented on May 1, 2012

    @normanmaurer
    MemberAuthor

    Isn't that what we do? We only use the stripped version for the remote address .

  5. 4 remaining items

  6. n1hility commented on May 1, 2012

    @n1hility

    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?

  7. normanmaurer commented on May 1, 2012

    @normanmaurer
    MemberAuthor

    Yes I was using openjdk ;)

  8. n1hility commented on May 1, 2012

    @n1hility

    Ah now try the evil proprietary oracle sun jdk :)

  9. normanmaurer commented on May 1, 2012

    @normanmaurer
    MemberAuthor

    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.

  10. n1hility commented on May 1, 2012

    @n1hility

    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 :(

  11. normanmaurer commented on May 1, 2012

    @normanmaurer
    MemberAuthor

    I guess removing is the best. What will you do for jboss-as ? Will removing work for you ?

  12. n1hility commented on May 1, 2012

    @n1hility

    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.

  13. normanmaurer commented on May 1, 2012

    @normanmaurer
    MemberAuthor

    Ok I guess I will just remove it in netty too.. Thanks for all your efforts !

  14. normanmaurer commented on May 2, 2012

    @normanmaurer
    MemberAuthor

    @n1hility thaks for the details. I removed the workaround...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions