Navigation Menu

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

Restart the DRB service when it completes it’s thread #7

Merged
merged 3 commits into from Feb 6, 2014

Conversation

JustinAiken
Copy link
Member

Unless it’s explicitly stopped by the user

@JustinAiken
Copy link
Member Author

Rebased with changelog and specs... should be ready to merge now, pending your review @benlangfeld

@JustinAiken
Copy link
Member Author

Hmm, travis says no... I'll figure out why these are passing at home with different rubies and failing on Travis, better not merge this until CI is fixed.

@JustinAiken
Copy link
Member Author

Yay green! Just needed a little pause to allow the DRB process time to restart; guess Travis's VMs aren't as speedy as a mighty Mac.

Should be clear to merge now.

acl = create_acl config.acl.allow, config.acl.deny
def initialize
@user_stopped = false
Thread.abort_on_exception = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so sure about including this here, since it's global. Necessary?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in commit below.

@benlangfeld
Copy link
Member

Did you manage to test this in a real app (perhaps by implementing something in the server object which raises when called)?

@JustinAiken
Copy link
Member Author

Raising exceptions in the server object never breaks the DRB thread that I can find.. but I tried setting up a method in the DRB object that closed the drb connection directly, and whenever calling that, this restarts it successfully in the real app.

@benlangfeld
Copy link
Member

Go ahead and merge/release as soon as Travis says yes. You have authorship on the gem.

JustinAiken pushed a commit that referenced this pull request Feb 6, 2014
Restart the DRB service when it completes it’s thread
@JustinAiken JustinAiken merged commit 7e4ecc5 into develop Feb 6, 2014
@JustinAiken JustinAiken deleted the feature/heal_drb_with_thread_join branch February 6, 2014 23:26
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

Successfully merging this pull request may close these issues.

None yet

2 participants