Connection hangs with debug logging enabled, causing socket.timeout errors #207
Running RPyC tip code, the following code doesn't work:
import logging from rpyc.utils.zerodeploy import DeployedServer from plumbum.machines.paramiko_machine import ParamikoMachine from paramiko import AutoAddPolicy logging.basicConfig(level=logging.DEBUG) p = ParamikoMachine("localhost", missing_host_policy=AutoAddPolicy()) s = DeployedServer(p) r = s.classic_connect() # Configure logging, so that remote logging events are correctly # passed to the local logger to be handled. rlogger = r.modules.logging.getLogger() rlogger.parent=logging.getLogger() # If this is set to a log level higher than DEBUG, the bug doesn't reproduce. rlogger.setLevel(logging.DEBUG) rlogger.addHandler(logging.NullHandler)
It hits a
It seems to hang indefinitely, even manually setting
Digging into it, it looks like this is caused by 8c8481a - reverting this commit causes the bug to no longer reproduce.
The text was updated successfully, but these errors were encountered:
- Fix refcount leakage when unboxing from cache (#196) - Fix TypeError when dispatching exceptions on py2 (unicode) - Respect ``rpyc_protocol_config`` for default Service getattr (#202) - Support unix domain sockets (#100,#208) - Use first accessible server in ``connect_by_service`` (#220) - Fix deadlock problem with logging (#207,#212)