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:


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.

Reply via email to