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

Worker does not timeout when connection to server is interrupted #35

Open
bwlewis opened this issue May 6, 2016 · 0 comments
Open

Worker does not timeout when connection to server is interrupted #35

bwlewis opened this issue May 6, 2016 · 0 comments
Assignees

Comments

@bwlewis
Copy link
Owner

bwlewis commented May 6, 2016

Consider two computers, hostnames A and B and assume Redis is running on computer A.
Start a manual doRedis R worker on computer B:

library(doRedis)
redisWorker(queue="test", host="A")

then log in to computer A and block the redis port, where eth0 is the network interface linking the two machines:

sudo  iptables -A INPUT -p tcp -i eth0 --dport 6379 -j DROP

Note that computer B hangs indefinitely even though its connection to Redis was severed. I didn't expect this, because the R connection timeout is set low intentionally in the worker.

It turns out that if the connection is restored, computer B will eventually fail, at least on my test rig, for instance log in to computer A and run:

sudo  iptables -F

Timing out and failing after the connection is restored is good behavior, but I wonder if this can be improved?

@bwlewis bwlewis changed the title Worker does not timeout when connection to server is interrupted (another worker hanging issue) Worker does not timeout when connection to server is interrupted May 6, 2016
@bwlewis bwlewis self-assigned this May 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant