From e4736827431138dd368ab637ccbf66bf8d63ac2b Mon Sep 17 00:00:00 2001 From: comrumino Date: Sun, 19 Mar 2023 15:35:18 -0500 Subject: [PATCH] Resolved locks not being released before shutdown which causes acquire lock to block indefinitely. - RPYC_BIND_THREADS=false taskset -c 0 pyenv exec python -m unittest discover -v -k test_race -k test_refcount -k test_affinity -k test_deploy - RPYC_BIND_THREADS=true taskset -c 0 pyenv exec python -m unittest discover -v -k test_race -k test_refcount -k test_affinity -k test_deploy --- rpyc/core/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpyc/core/protocol.py b/rpyc/core/protocol.py index 8b3ae94b..8147c241 100644 --- a/rpyc/core/protocol.py +++ b/rpyc/core/protocol.py @@ -222,7 +222,7 @@ def close(self): # IO self._closed = True if self._config.get("before_closed"): self._config["before_closed"](self.root) - self._async_request(consts.HANDLE_CLOSE) + self.sync_request(consts.HANDLE_CLOSE) except EOFError: pass except Exception: