Skip to content
Snippets Groups Projects
Commit 06ea7d37 authored by Michael Lumish's avatar Michael Lumish Committed by GitHub
Browse files

Merge pull request #10508 from murgatroid99/node_offline_hang

Node: fix hang after DNS resolution failure
parents bbf4e5b3 3ac309eb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment