You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running RPyC tip code, the following code doesn't work:
importloggingfromrpyc.utils.zerodeployimportDeployedServerfromplumbum.machines.paramiko_machineimportParamikoMachinefromparamikoimportAutoAddPolicylogging.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 socket.timeout error after 30 seconds:
Traceback (most recent call last):
File "rpyc_hang_repro.py", line 14, in <module>
rlogger.addHandler(logging.NullHandler)
File "/home/rpyc/rpyc/core/netref.py", line 148, in __getattribute__
return syncreq(self, consts.HANDLE_GETATTR, name)
File "/home/rpyc/rpyc/core/netref.py", line 71, in syncreq
return conn.sync_request(handler, oid, *args)
File "/home/rpyc/rpyc/core/protocol.py", line 467, in sync_request
raise socket.timeout
socket.timeout
It seems to hang indefinitely, even manually setting SYNC_REQUEST_TIMEOUT in rpyc/core/protocol.py to five minutes hits the same error (after five minutes).
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)
Running RPyC tip code, the following code doesn't work:
It hits a
socket.timeout
error after 30 seconds:It seems to hang indefinitely, even manually setting
SYNC_REQUEST_TIMEOUT
in rpyc/core/protocol.py to five minutes hits the same error (after five minutes).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: