zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-2490) infinitely connect on windows
Date Wed, 30 Jan 2019 14:47:00 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-2490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

ASF GitHub Bot updated ZOOKEEPER-2490:
--------------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.6.0, 3.5.5
>
>         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
(v7.6.3#76005)

Mime
View raw message