[
https://issues.apache.org/jira/browse/CASSANDRA-4359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Ellis resolved CASSANDRA-4359.
---------------------------------------
Resolution: Not A Problem
> 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