From faf8f684b1d2bd453a9bfc42a626795e39836c7f Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 6 Oct 2015 09:12:34 -0700 Subject: [PATCH] Close incoming connections if we are post shutdown --- src/core/iomgr/tcp_server_windows.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/iomgr/tcp_server_windows.c b/src/core/iomgr/tcp_server_windows.c index db3319b3c6c..3fea8b5b350 100644 --- a/src/core/iomgr/tcp_server_windows.c +++ b/src/core/iomgr/tcp_server_windows.c @@ -336,6 +336,8 @@ static void on_accept(grpc_exec_ctx *exec_ctx, void *arg, int from_iocp) { peer_name_string); gpr_free(fd_name); gpr_free(peer_name_string); + } else { + closesocket(sock); } }