aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar makdharma <makdharma@users.noreply.github.com>2017-05-25 12:10:59 -0700
committerGravatar GitHub <noreply@github.com>2017-05-25 12:10:59 -0700
commite8f565bc64a1ac5b9d592b852aa58f9cbb9bef6d (patch)
tree019f7db317b5955f6b4e21b1debbf337ff5d15a9
parent19fd924bed05cf8e6fb9006d5b3ef9e1e9fb8f8e (diff)
parent9c156da66afde71361d07cf785a826e20ca85c9d (diff)
Merge pull request #11224 from makdharma/http_proxy_test_fix
Fixes #9542
-rw-r--r--src/core/ext/transport/chttp2/server/chttp2_server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ext/transport/chttp2/server/chttp2_server.c b/src/core/ext/transport/chttp2/server/chttp2_server.c
index b9c62c376a..2c076e821c 100644
--- a/src/core/ext/transport/chttp2/server/chttp2_server.c
+++ b/src/core/ext/transport/chttp2/server/chttp2_server.c
@@ -127,6 +127,7 @@ static void on_accept(grpc_exec_ctx *exec_ctx, void *arg, grpc_endpoint *tcp,
gpr_mu_lock(&state->mu);
if (state->shutdown) {
gpr_mu_unlock(&state->mu);
+ grpc_endpoint_shutdown(exec_ctx, tcp, GRPC_ERROR_NONE);
grpc_endpoint_destroy(exec_ctx, tcp);
gpr_free(acceptor);
return;