spooky000 created ZOOKEEPER-2490: ------------------------------------ Summary: 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 Fix For: 3.5.2
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.4#6332)