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

Nio forever #82

Merged
merged 8 commits into from
Jan 31, 2016
Merged

Nio forever #82

merged 8 commits into from
Jan 31, 2016

Conversation

HoneyryderChuck
Copy link
Contributor

Solves hanging actors problem described in socketry/timers#58

Tiago Cardoso added 2 commits January 28, 2016 16:00
This solves socketry/timers#58 , a bug that has been around.
Long story short, timers were passing really short intervals on the actor, these were being
passed to the reactor for select. Some of them were being cast to 0 before being passed to the
nio.Channel#select method, which according to documentation, blocks forever when passed 0.
@HoneyryderChuck
Copy link
Contributor Author

@tarcieri , patch release? I guess celluloid-io isn't usable without this, what do you think?

@HoneyryderChuck
Copy link
Contributor Author

@ioquatix , ping.

@tarcieri
Copy link
Contributor

I can take a look tonight...

@HoneyryderChuck
Copy link
Contributor Author

@tarcieri , please follow linked issue. I think that it's not nio4r anymore, but just old on that patch release for now.

@ioquatix
Copy link
Member

Before we merge this perhaps we should find out why nio4r is failing on travis.

@tarcieri
Copy link
Contributor

@ioquatix it's RuboCop. I can take care of that separately tonight, and pin it in the Gemfile so this doesn't happen again

@ioquatix
Copy link
Member

@tarcieri that would be great. Thanks.

@ioquatix ioquatix closed this Jan 29, 2016
@ioquatix ioquatix reopened this Jan 29, 2016
@tarcieri
Copy link
Contributor

@TiagoCardoso1983 can you rebase? I fixed the RuboCop errors in #83

Tiago Cardoso and others added 3 commits January 31, 2016 10:19
This solves socketry/timers#58 , a bug that has been around.
Long story short, timers were passing really short intervals on the actor, these were being
passed to the reactor for select. Some of them were being cast to 0 before being passed to the
nio.Channel#select method, which according to documentation, blocks forever when passed 0.
@HoneyryderChuck
Copy link
Contributor Author

done

@ioquatix
Copy link
Member

Still some rubocop issues, can you please fix :) Thanks.

@HoneyryderChuck
Copy link
Contributor Author

btw, the spec that I added blocks indefinitely, that is, without the fix inserted in the subsequent commit. The around wrapper being used in celluloid specs here would have prevented this and provided better visibility. @tarcieri not saying that all of those wrappers should be imported here, but some of them would definitely make sense, specially for travis PR error visibility.

tarcieri added a commit that referenced this pull request Jan 31, 2016
@tarcieri tarcieri merged commit e5df781 into socketry:master Jan 31, 2016
@tarcieri
Copy link
Contributor

Released as 1.2.1

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.

3 participants