You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Michael Han (JIRA)" <ji...@apache.org> on 2017/03/13 16:21:57 UTC
[jira] [Updated] (ZOOKEEPER-2490) infinitely connect on windows
[ https://issues.apache.org/jira/browse/ZOOKEEPER-2490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Han updated ZOOKEEPER-2490:
-----------------------------------
Fix Version/s: (was: 3.5.3)
3.5.4
> infinitely connect on windows
> -----------------------------
>
> Key: ZOOKEEPER-2490
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2490
> Project: ZooKeeper
> Issue Type: Bug
> Components: c client
> Affects Versions: 3.5.2
> Environment: Windows
> Reporter: spooky000
> Assignee: spooky000
> Fix For: 3.5.4, 3.6.0
>
> Attachments: ZOOKEEPER-2490.patch, ZOOKEEPER-2490.patch, ZOOKEEPER-2490.patch
>
>
> in addrvec_contains function
> this memcmp always return false on windows release build.
> for (i = 0; i < avec->count; i++)
> {
> if(memcmp(&avec->data[i], addr, INET_ADDRSTRLEN) == 0)
> return 1;
> }
> because..
> #define INET_ADDRSTRLEN 16 on linux.
> #define INET_ADDRSTRLEN 22 on windows.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)