[jira] Commented: (ZOOKEEPER-667) java client doesn't allow ipv6 numeric connect string

2010-10-28 Thread Gunnar Wagenknecht (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12925923#action_12925923
 ] 

Gunnar Wagenknecht commented on ZOOKEEPER-667:
--

I'm wondering if there is something else to do for proper connecting on IPv6 
systems. I'm on Windows 7 with Java 6 and I do have the following exception in 
my logs.

When connecting I specified {{localhost:2181}}.
{noformat}
21:20:04.157 [Worker-0-SendThread()] INFO  org.apache.zookeeper.ClientCnxn - 
Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181
21:20:04.188 [Worker-0-SendThread(localhost:2181)] WARN  
org.apache.zookeeper.ClientCnxn - Session 0x0 for server null, unexpected 
error, closing socket connection and attempting reconnect
java.net.SocketException: Address family not supported by protocol family: 
connect
at sun.nio.ch.Net.connect(Native Method) ~[na:1.6.0_21]
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507) 
~[na:1.6.0_21]
at 
org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1009) 
~[na:na]
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1036) 
~[na:na]
{noformat}


 java client doesn't allow ipv6 numeric connect string
 -

 Key: ZOOKEEPER-667
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-667
 Project: Zookeeper
  Issue Type: Bug
  Components: java client
Affects Versions: 3.2.2
Reporter: Patrick Hunt
Assignee: Patrick Hunt
Priority: Critical
 Fix For: 3.3.0


 The java client doesn't handle ipv6 numeric addresses as they are colon (:) 
 delmited. After splitting the host/port on : we look for the port as the 
 second entry in the array rather than the last entry in the array.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (ZOOKEEPER-667) java client doesn't allow ipv6 numeric connect string

2010-02-12 Thread Benjamin Reed (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12833137#action_12833137
 ] 

Benjamin Reed commented on ZOOKEEPER-667:
-

requiring the port for ipv6 sounds ok to me. i think we can support both for 
almost free: it turns out that the following are equivalent:

InetAddress.getByName([::1])
InetAddress.getByName(::1)

the trick is that we have not look for a port if there is a ] after the last :

 java client doesn't allow ipv6 numeric connect string
 -

 Key: ZOOKEEPER-667
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-667
 Project: Zookeeper
  Issue Type: Bug
  Components: java client
Affects Versions: 3.2.2
Reporter: Patrick Hunt
Assignee: Patrick Hunt
Priority: Critical
 Fix For: 3.3.0


 The java client doesn't handle ipv6 numeric addresses as they are colon (:) 
 delmited. After splitting the host/port on : we look for the port as the 
 second entry in the array rather than the last entry in the array.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (ZOOKEEPER-667) java client doesn't allow ipv6 numeric connect string

2010-02-11 Thread Benjamin Reed (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12832717#action_12832717
 ] 

Benjamin Reed commented on ZOOKEEPER-667:
-

the source of all truth, aka wikipedia 
http://en.wikipedia.org/wiki/IPv6_address notes that for URLs with ipv6 
addresses they use http://[blah:blah::blah]:port. perhaps we should use this 
syntax as well.

btw, i also noticed with some testing that if you bind to ::1, you cannot 
connect to it using 127.0.0.1. binding to 127.0.0.1 you cannot connect using 
::1, but you can use :::127.0.0.1. binding to :::127.0.0.1 you can 
connect using 127.0.0.1 and :::127.0.0.1 but not ::1.

 java client doesn't allow ipv6 numeric connect string
 -

 Key: ZOOKEEPER-667
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-667
 Project: Zookeeper
  Issue Type: Bug
  Components: java client
Affects Versions: 3.2.2
Reporter: Patrick Hunt
Assignee: Patrick Hunt
Priority: Critical
 Fix For: 3.3.0


 The java client doesn't handle ipv6 numeric addresses as they are colon (:) 
 delmited. After splitting the host/port on : we look for the port as the 
 second entry in the array rather than the last entry in the array.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.