Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout while running long commands #169

Closed
eplaut opened this issue May 14, 2015 · 2 comments
Closed

timeout while running long commands #169

eplaut opened this issue May 14, 2015 · 2 comments

Comments

@eplaut
Copy link

eplaut commented May 14, 2015

Hi,

Running long commands (>30 secs) raise socket.timeout exception

test case:

$ rpyc_classic.py &
INFO:SLAVE/18812:server started on [0.0.0.0]:18812

$ python -c 'import rpyc; c = rpyc.classic.connect("localhost"); c.modules.time.sleep(40)'
INFO:SLAVE/18812:accepted 127.0.0.1:43377
INFO:SLAVE/18812:welcome [127.0.0.1]:43377
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/eli/qa/.venv/local/lib/python2.7/site-packages/rpyc/core/netref.py", line 196, in __call__
    return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
  File "/home/eli/qa/.venv/local/lib/python2.7/site-packages/rpyc/core/netref.py", line 71, in syncreq
    return conn.sync_request(handler, oid, *args)
  File "/home/eli/qa/.venv/local/lib/python2.7/site-packages/rpyc/core/protocol.py", line 464, in sync_request
    raise socket.timeout
socket.timeout
INFO:SLAVE/18812:goodbye [127.0.0.1]:43402

rpyc/core/protocol.py: Connection.SYNC_REQUEST_TIMEOUT = 30

Thanks

@tomerfiliba
Copy link
Collaborator

i see this was introduced by 7abaf58 ... for once you can change c.SYNC_REQUEST_TIMEOUT to your liking, but it's certainly a bug introduced by this commit.

@coldfix
Copy link
Contributor

coldfix commented Dec 27, 2017

Was fixed by a00be89.

@coldfix coldfix closed this as completed Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants