From c86ac2885ff3132191125c1f44ea23e7ef45c62d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 30 Apr 2019 15:03:55 -0400 Subject: [PATCH] Fix overly verbose log on client close When a client would close (e.g. an unathenticated nodelist), a large trace be logged. Fix by returning silently in such a case. --- confluent_server/confluent/sockapi.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/sockapi.py b/confluent_server/confluent/sockapi.py index aa0b8a9f..061317f9 100644 --- a/confluent_server/confluent/sockapi.py +++ b/confluent_server/confluent/sockapi.py @@ -127,6 +127,8 @@ def sessionhdl(connection, authname, skipauth=False, cert=None): while not authenticated: # prompt for name and passphrase send_data(connection, {'authpassed': 0}) response = tlvdata.recv(connection) + if not response: + return if 'collective' in response: return collective.handle_connection(connection, cert, response['collective'])