From 5436d6666786f4882484977d8348254dea4a367c Mon Sep 17 00:00:00 2001 From: chengduo Date: Wed, 5 Jun 2019 20:41:24 +0800 Subject: [PATCH] close socket connect (#17862) test=develop --- paddle/fluid/imperative/nccl_context.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/imperative/nccl_context.cc b/paddle/fluid/imperative/nccl_context.cc index f96c83936d..d9630bd66d 100644 --- a/paddle/fluid/imperative/nccl_context.cc +++ b/paddle/fluid/imperative/nccl_context.cc @@ -93,6 +93,7 @@ void NCCLParallelContext::SendNCCLID(const std::string &ep, send(sock, buffer, NCCL_UNIQUE_ID_BYTES, 0); break; } + close(sock); } void NCCLParallelContext::BcastNCCLId(ncclUniqueId *nccl_id, int root) { -- GitLab