diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-04-01 23:46:05 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-04-01 23:46:05 +0000 |
commit | bb7acb644a5d46050e4ee7e2c43c47bf1c7026c8 (patch) | |
tree | 5649cfff7c8c6ae9cf246cbc0a65af4f2df8a45a | |
parent | 7eba962c381746f5d97199c5d092a2f0e3634e64 (diff) | |
download | bcfg2-bb7acb644a5d46050e4ee7e2c43c47bf1c7026c8.tar.gz bcfg2-bb7acb644a5d46050e4ee7e2c43c47bf1c7026c8.tar.bz2 bcfg2-bb7acb644a5d46050e4ee7e2c43c47bf1c7026c8.zip |
Fix request handler traceback if client disappear suddenly (cosmetic)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4469 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Component.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Component.py b/src/lib/Component.py index c059bc306..2618265c7 100644 --- a/src/lib/Component.py +++ b/src/lib/Component.py @@ -27,6 +27,12 @@ class CobaltXMLRPCRequestHandler(SimpleXMLRPCServer.SimpleXMLRPCRequestHandler): '''CobaltXMLRPCRequestHandler takes care of ssl xmlrpc requests''' masterpid = os.getpid() + def __init__(self, request, client_address, server): + self.cleanup = True + SimpleXMLRPCServer.SimpleXMLRPCRequestHandler.__init__(self, request, + client_address, + server) + def do_POST(self): '''Overload do_POST to pass through client address information''' try: |