From f43a65e0262d9c3c768e93a086920e253124bda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Tue, 16 Jan 2018 10:33:51 +0100 Subject: [PATCH] Fixed connection for not checking connections --- server/src/uds/REST/methods/connection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/src/uds/REST/methods/connection.py b/server/src/uds/REST/methods/connection.py index e0f057892..c48aba760 100644 --- a/server/src/uds/REST/methods/connection.py +++ b/server/src/uds/REST/methods/connection.py @@ -112,7 +112,7 @@ class Connection(Handler): 'not_accesible': not servicePool.isAccessAllowed(), 'to_be_replaced': False, # Manually assigned will not be autoremoved never 'transports': trans, - 'in_use': svr.in_use}) + 'in_use': servicePool.in_use}) logger.debug(services) @@ -162,7 +162,9 @@ class Connection(Handler): 'protocol': 'unknown', 'ip': ip } - ci.update(itrans.getConnectionInfo(userService, self._user, 'UNKNOWN')) + logger.debug('ip: {}, userService: {}, iads: {}, trans: {}, itrans: {}'.format(ip, userService, iads, trans, itrans)) + if doNotCheck is False: + ci.update(itrans.getConnectionInfo(userService, self._user, 'UNKNOWN')) return Connection.result(result=ci) except ServiceNotReadyError as e: # Refresh ticket and make this retrayable