Skip to content

Commit

Permalink
Resolved locks not being released before shutdown which causes acquir…
Browse files Browse the repository at this point in the history
…e 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
  • Loading branch information
comrumino committed Mar 19, 2023
1 parent 55c3495 commit e473682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpyc/core/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e473682

Please sign in to comment.