Skip to content
Snippets Groups Projects
Commit b094b2c3 authored by Craig Tiller's avatar Craig Tiller
Browse files

Actually print error message

parent 41559c64
No related branches found
No related tags found
No related merge requests found
...@@ -162,6 +162,15 @@ static void got_port_from_server(grpc_exec_ctx *exec_ctx, void *arg, ...@@ -162,6 +162,15 @@ static void got_port_from_server(grpc_exec_ctx *exec_ctx, void *arg,
if (failed) { if (failed) {
grpc_httpcli_request req; grpc_httpcli_request req;
memset(&req, 0, sizeof(req)); memset(&req, 0, sizeof(req));
if (pr->retries >= 5) {
gpr_mu_lock(pr->mu);
pr->port = 0;
GRPC_LOG_IF_ERROR(
"pollset_kick",
grpc_pollset_kick(grpc_polling_entity_pollset(&pr->pops), NULL));
gpr_mu_unlock(pr->mu);
return;
}
GPR_ASSERT(pr->retries < 10); GPR_ASSERT(pr->retries < 10);
gpr_sleep_until(gpr_time_add( gpr_sleep_until(gpr_time_add(
gpr_now(GPR_CLOCK_REALTIME), gpr_now(GPR_CLOCK_REALTIME),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment