close sockets

svn path=/trunk/boinc/; revision=7242
This commit is contained in:
David Anderson 2005-08-11 05:53:43 +00:00
parent 5e26d53f33
commit 8945f94103
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -215,6 +215,9 @@ int NET_XFER_SET::insert(NET_XFER* nxp) {
int NET_XFER_SET::remove(NET_XFER* nxp) {
vector<NET_XFER*>::iterator iter;
nxp->close_file();
nxp->close_socket();
iter = net_xfers.begin();
while (iter != net_xfers.end()) {
if (*iter == nxp) {