Set socket timeout to CONNECT_TIMEOUT when logout
This commit is contained in:
1 parent
9e60f5a1f6
commit
ef76909b59
1 file changed
+1
@@ -149,6 +149,7 @@ def logout():
|
||||
try:
|
||||
args = (_DATABASE, _USER, _SESSION, 'common', 'db', 'logout')
|
||||
logging.getLogger('rpc.request').info(repr(args))
|
||||
_SOCK.sock.settimeout(pysocket.CONNECT_TIMEOUT)
|
||||
_SOCK.send(args)
|
||||
res = _SOCK.receive()
|
||||
logging.getLogger('rpc.result').debug(repr(res))
|
||||
|
||||
Reference in new issue
Block a user