aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Junsung Ko <anjupiter@daum.net>2017-12-04 15:16:57 +0900
committerGravatar Jan Tattermusch <jtattermusch@google.com>2017-12-12 19:08:25 -0800
commitb66c7d1e7dc9b72829a19ce9cf4904a9e64248bf (patch)
treeb8700933ae20b716eab44ce172d9ce8ae7fcba70 /src/core
parentada05afd62a2e5d405bc1ba1c1cf2d775d1a42ea (diff)
fix or slow down windows socket leak
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lib/iomgr/tcp_client_windows.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/tcp_client_windows.cc b/src/core/lib/iomgr/tcp_client_windows.cc
index 103e6b78de..8a87e92b14 100644
--- a/src/core/lib/iomgr/tcp_client_windows.cc
+++ b/src/core/lib/iomgr/tcp_client_windows.cc
@@ -104,6 +104,7 @@ static void on_connect(grpc_exec_ctx* exec_ctx, void* acp, grpc_error* error) {
GPR_ASSERT(transfered_bytes == 0);
if (!wsa_success) {
error = GRPC_WSA_ERROR(WSAGetLastError(), "ConnectEx");
+ closesocket(socket->socket);
} else {
*ep =
grpc_tcp_create(exec_ctx, socket, ac->channel_args, ac->addr_name);