diff options
author | Yuchen Zeng <y-zeng@users.noreply.github.com> | 2017-06-08 13:17:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-08 13:17:02 -0700 |
commit | 8f3d02106b72783f61430c84d3501ed3d88b3415 (patch) | |
tree | 94c4a489125aa3782dbdfc92debda55e32536af7 /test/core/util | |
parent | c055a79262b52f8a06c92b706bff3686e062b081 (diff) | |
parent | a2c468d691a7e38df217ce2a6f102bd32a49b1c5 (diff) |
Merge pull request #11237 from y-zeng/srv_record
Support grpclb address in the c-ares resolver
Diffstat (limited to 'test/core/util')
-rw-r--r-- | test/core/util/port_server_client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/util/port_server_client.c b/test/core/util/port_server_client.c index 89e0aca79c..e5a2ecd517 100644 --- a/test/core/util/port_server_client.c +++ b/test/core/util/port_server_client.c @@ -92,6 +92,7 @@ void grpc_free_port_using_server(int port) { grpc_schedule_on_exec_ctx), &rsp); grpc_resource_quota_unref_internal(&exec_ctx, resource_quota); + grpc_exec_ctx_flush(&exec_ctx); gpr_mu_lock(pr.mu); while (!pr.done) { grpc_pollset_worker *worker = NULL; @@ -224,6 +225,7 @@ int grpc_pick_port_using_server(void) { grpc_closure_create(got_port_from_server, &pr, grpc_schedule_on_exec_ctx), &pr.response); grpc_resource_quota_unref_internal(&exec_ctx, resource_quota); + grpc_exec_ctx_flush(&exec_ctx); gpr_mu_lock(pr.mu); while (pr.port == -1) { grpc_pollset_worker *worker = NULL; |