diff --git a/confluent_server/confluent/core.py b/confluent_server/confluent/core.py index 966dd3a6..32511cf8 100644 --- a/confluent_server/confluent/core.py +++ b/confluent_server/confluent/core.py @@ -1054,12 +1054,12 @@ def dispatch_request(nodes, manager, element, configmanager, inputdata, remote = ssl.wrap_socket(remote, cert_reqs=ssl.CERT_NONE, keyfile='/etc/confluent/privkey.pem', certfile='/etc/confluent/srvcert.pem') - except Exception: + except Exception as e: for node in nodes: if a: yield msg.ConfluentResourceUnavailable( - node, 'Collective member {0} is unreachable'.format( - a['name'])) + node, 'Collective member {0} is unreachable ({1})'.format( + a['name'], str(e))) else: yield msg.ConfluentResourceUnavailable( node, diff --git a/confluent_server/confluent/sockapi.py b/confluent_server/confluent/sockapi.py index 4172313c..971c1738 100644 --- a/confluent_server/confluent/sockapi.py +++ b/confluent_server/confluent/sockapi.py @@ -205,7 +205,8 @@ def sessionhdl(connection, authname, skipauth=False, cert=None): except Exception: request = None finally: - cfm.close_client_files() + if cfm: + cfm.close_client_files() try: connection.close() except Exception: