cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4359) Using IPv6 under Windows 7 says: "Address family not supported by protocol family"
Date Wed, 27 Jun 2012 07:03:43 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-4359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402005#comment-13402005
] 

Jonathan Ellis commented on CASSANDRA-4359:
-------------------------------------------

http://bugs.sun.com/view_bug.do?bug_id=6230761 suggests that this should be fixed with jdk7,
did you try that?
                
> Using IPv6 under Windows 7 says: "Address family not supported by protocol family"
> ----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-4359
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4359
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.1
>         Environment: Windows 7
>            Reporter: Gerben Kegel
>            Priority: Minor
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> You can not use IPv6 under Windows 7 because nio is not supported. You receive an error:
"Address family not supported by protocol family".
> Yuu can reproduce it by changing the rpc_address to "[::1]" and start Cassandra under
Windows 7
> A workaround is to disable nio while using IPv6 under Windows 7. (Other windows versions
might also be affected.) Example:
> {code:title=MessagingService.java}
> ServerSocket socket;
> if (nioSupported(localEp)) {
>   serverChannel = ServerSocketChannel.open();
>   socket = serverChannel.socket();
> } else {
>   socket = new ServerSocket();
> }
> private boolean nioSupported(InetAddress localEp) {
>   String os = System.getProperty("os.name");
>   return !(localEp instanceof Inet6Address && os.equals("Windows 7"));
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message