zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From breed <...@git.apache.org>
Subject [GitHub] zookeeper pull request #579: [ZOOKEEPER-3095] Connect string fix for non-exi...
Date Fri, 27 Jul 2018 04:39:21 GMT
Github user breed commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/579#discussion_r205666180
  
    --- Diff: src/c/src/zookeeper.c ---
    @@ -842,11 +842,16 @@ static int resolve_hosts(const zhandle_t *zh, const char *hosts_in,
addrvec_t *a
             }
     
             freeaddrinfo(res0);
    -
    +next:
             host = strtok_r(0, ",", &strtok_last);
             }
     #endif
         }
    +    if (avec->count == 0) {
    +      rc = ZSYSTEMERROR; // not a single host resolved
    --- End diff --
    
    4 space indent ;)


---

Mime
View raw message