From 8945f941035ea83c71b32facfbd5b365dc83a127 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 11 Aug 2005 05:53:43 +0000 Subject: [PATCH] close sockets svn path=/trunk/boinc/; revision=7242 --- checkin_notes | 8 ++++++++ client/net_xfer.C | 3 +++ 2 files changed, 11 insertions(+) diff --git a/checkin_notes b/checkin_notes index e457831c18..5d4d7c161f 100755 --- a/checkin_notes +++ b/checkin_notes @@ -10300,3 +10300,11 @@ David 10 Aug 2005 lib/ gui_rpc_client.h gui_rpc_client_ops.C + +David 10 Aug 2005 + - add close_file(), close_socke() to NET_XFER_SET::remove(). + May fix socket leak. + From Egon Larsson + + client/ + net_xfer.C diff --git a/client/net_xfer.C b/client/net_xfer.C index 25463cd685..1fb7c8fcfe 100644 --- a/client/net_xfer.C +++ b/client/net_xfer.C @@ -215,6 +215,9 @@ int NET_XFER_SET::insert(NET_XFER* nxp) { int NET_XFER_SET::remove(NET_XFER* nxp) { vector::iterator iter; + nxp->close_file(); + nxp->close_socket(); + iter = net_xfers.begin(); while (iter != net_xfers.end()) { if (*iter == nxp) {