diff options
author | Craig Tiller <ctiller@google.com> | 2017-03-07 15:53:03 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-03-07 15:55:53 -0800 |
commit | b094b2c31e2f4aa3ae18f92ca1611b87f37c9296 (patch) | |
tree | 6138d7a3e3407f46863817a65beaf6315e705ed1 /test/core/util | |
parent | 41559c643416148f46251052f8148bc38071a47f (diff) |
Actually print error message
Diffstat (limited to 'test/core/util')
-rw-r--r-- | test/core/util/port_server_client.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/core/util/port_server_client.c b/test/core/util/port_server_client.c index a851d01635..38054dd1e7 100644 --- a/test/core/util/port_server_client.c +++ b/test/core/util/port_server_client.c @@ -162,6 +162,15 @@ static void got_port_from_server(grpc_exec_ctx *exec_ctx, void *arg, if (failed) { grpc_httpcli_request 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_sleep_until(gpr_time_add( gpr_now(GPR_CLOCK_REALTIME), |