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:
parent
b367d8ea50
commit
06cfd408fc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user