2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-23 01:53:28 +00:00

Fix handling of abrupt client close

This commit is contained in:
Jarrod Johnson 2021-08-24 07:56:49 -04:00
parent b367d8ea50
commit 06cfd408fc

View File

@ -200,7 +200,10 @@ def sessionhdl(connection, authname, skipauth=False, cert=None):
send_data(connection, {'errorcode': 500,
'error': 'Unexpected error - ' + str(e)})
send_data(connection, {'_requestdone': 1})
request = tlvdata.recv(connection)
try:
request = tlvdata.recv(connection)
except Exception:
request = None
finally:
cfm.close_client_files()
try: