Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.