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

Reconnect with updated content #10

Open
hotwoofy opened this issue Jan 16, 2011 · 2 comments
Open

Reconnect with updated content #10

hotwoofy opened this issue Jan 16, 2011 · 2 comments

Comments

@hotwoofy
Copy link

The README asserts that twitter-stream adheres to twitter's reconnection guidline, so I've been happily exposing the @options variable, modifying the :content to change track keywords, and issueing immdiate_reconnect to update things when I recieve SIGUSR1.

I've had no problems, I was purely wondering if there was anything I should worry about with this approach? Is there any reason this couldn't be explicitly exposed in future releases?

@thbar
Copy link
Contributor

thbar commented Apr 12, 2012

@hotwoofy does it still work for you today?

I'm having issues here, namely this exception just after what doing what you describe:

[GEM_ROOT]/gems/twitter-stream-0.1.14/lib/twitter/json_stream.rb:121:in `<<'
[GEM_ROOT]/gems/twitter-stream-0.1.14/lib/twitter/json_stream.rb:121:in `receive_data'
[GEM_ROOT]/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run_machine'
[GEM_ROOT]/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run'

It happens even with the current master.

Do you have something that works today?

More details:

stream.options[:content] = new_content
stream.immediate_reconnect

Then I receive 2 on_reconnect then the error above, all the time.

Let me know if you have a fix!

@thbar
Copy link
Contributor

thbar commented Apr 12, 2012

@hotwoofy I created issue #27 to track the exception I got

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

2 participants