-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
Fix linking timeout #435
Fix linking timeout #435
Conversation
I'd suggest using the actor's |
Okay, I will try that. |
I haven't updated the code since I wanted to see if the fixes were working upstream, and here are the results: https://travis-ci.org/ioquatix/rubydns/jobs/26184701 So basically RubyDNS now works very nicely on Celluloid - faster than Bind9 for the specific case I'm testing too! |
@ioquatix woohoo! 🎉 |
Okay, so I'm looking at the other options to implement this and trying to justify one way or the other. I believe the current PR is appropriate, but the code should be integrated into 'timers' gem to reduce coupling between Here is my reasoning to support the original PR: a/ Anything that uses b/ There are multiple places in the code where we need to easily and correctly handle exclusive timeouts. This isn't the only one from what I've seen. Having a class which implements this logic correctly and with a fool-proof API is useful. If it is tied to the implementation of c/ Are there efficiency gains for integrating with the existing timer state? I thought about this too. Because it's an exclusive loop, we can only assume that the time computation is done once per iteration of the loop (e.g. a system call for the monotonic time). Whether we use Let me know your thoughts. |
I think I mentioned on IRC, but I will add, 3 times "wall clock time" faster than event machine, by my rough estimations too. EDIT: Need to do some more investigation on this claim, looks like it might still be a bit slower when running on Travis - but on my development machine it is faster :D |
@ioquatix looks good, but I'd suggest moving |
@tarcieri That was my original intention but I wanted to get it working before doing that.
|
Yeah, make a PR against timers, and I can release 2.1.0 |
Um, it would be good to fix the other issues in travis so the build status reflects the PR correctly 👍 |
end | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ws
Let me know if you would like me to make a PR directly against timers - or perhaps you can do it. Let me know what you think of this solution.