Merge pull request #10508 from murgatroid99/node_offline_hang

Node: fix hang after DNS resolution failure
pull/10520/head
Michael Lumish 8 years ago committed by GitHub
commit 06ea7d3739
  1. 3
      src/core/lib/iomgr/resolve_address_uv.c

@ -69,8 +69,9 @@ static int retry_named_port_failure(int status, request *r,
int retry_status;
uv_getaddrinfo_t *req = gpr_malloc(sizeof(uv_getaddrinfo_t));
req->data = r;
r->port = svc[i][1];
retry_status = uv_getaddrinfo(uv_default_loop(), req, getaddrinfo_cb,
r->host, svc[i][1], r->hints);
r->host, r->port, r->hints);
if (retry_status < 0 || getaddrinfo_cb == NULL) {
// The callback will not be called
gpr_free(req);

Loading…
Cancel
Save