summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-05-06 01:26:13 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-05-06 01:26:13 +0000
commitba14486ee9e9a55f30b9dd239703ed059ef5fb05 (patch)
tree441d129c185f1b4dd6fff365b04bd3fddb01962c /src/lib
parent9e69cc3aa887269e40c71720050631c7aec8ee3b (diff)
downloadbcfg2-ba14486ee9e9a55f30b9dd239703ed059ef5fb05.tar.gz
bcfg2-ba14486ee9e9a55f30b9dd239703ed059ef5fb05.tar.bz2
bcfg2-ba14486ee9e9a55f30b9dd239703ed059ef5fb05.zip
Component: force client socket shutdown
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5181 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Component.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Component.py b/src/lib/Component.py
index b76b1bd33..7cfd3b8c8 100644
--- a/src/lib/Component.py
+++ b/src/lib/Component.py
@@ -79,7 +79,10 @@ class CobaltXMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler):
# shut down the connection
self.wfile.flush()
- #self.connection.shutdown()
+ self.rfile.close()
+ self.wfile.close()
+ self.connection.sock.shutdown(2)
+ #self.wfile.close()
except socket.error:
pass
@@ -120,6 +123,8 @@ class TLSServer(Bcfg2.tlslite.api.TLSSocketServerMixIn,
tlsConnection.close()
if os.getpid() != self.master:
os._exit(0)
+ else:
+ log.error("Handshake failed")
def handshake(self, tlsConnection):
try: