summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-12-14 20:59:54 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-12-14 20:59:54 +0000
commit028c3df745f162c251e0e0da4016dc9620716cb1 (patch)
treed735a328ac80a73e9ca86a402d7905499aa10cd5
parent2bf2b408e1ea37a47d36d93a8980d1ba1784b123 (diff)
downloadbcfg2-028c3df745f162c251e0e0da4016dc9620716cb1.tar.gz
bcfg2-028c3df745f162c251e0e0da4016dc9620716cb1.tar.bz2
bcfg2-028c3df745f162c251e0e0da4016dc9620716cb1.zip
SSLServer: fix socket leak reported by Cory and Lisa
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5620 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/SSLServer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/SSLServer.py b/src/lib/SSLServer.py
index 5e5bb6574..68ed8f94d 100644
--- a/src/lib/SSLServer.py
+++ b/src/lib/SSLServer.py
@@ -223,6 +223,8 @@ class XMLRPCRequestHandler (SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
self.wfile.close()
self.rfile.close()
self.connection.unwrap()
+ self.connection.close()
+ os.close(self.connection.fileno())
class XMLRPCServer (SocketServer.ThreadingMixIn, SSLServer,
XMLRPCDispatcher, object):