aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-10-06 09:12:34 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-10-06 09:12:34 -0700
commitfaf8f684b1d2bd453a9bfc42a626795e39836c7f (patch)
treefa47b33cf5ae7bd3128beb9946ded96755656210 /src
parentb09d84d7eb397e9c839f70322d995e60009f7bbe (diff)
Close incoming connections if we are post shutdown
Diffstat (limited to 'src')
-rw-r--r--src/core/iomgr/tcp_server_windows.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/iomgr/tcp_server_windows.c b/src/core/iomgr/tcp_server_windows.c
index db3319b3c6..3fea8b5b35 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);
}
}