-
Notifications
You must be signed in to change notification settings - Fork 23
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
ArgumentError: this IO is already registered with selector #53
Comments
Let me know what you find on this. |
@digitalextremist @kenichi I'm able to reproduce it! 👍 require 'angelo'
require 'json'
class AngeloStressTest < Angelo::Base
websocket '/' do |ws|
websockets << ws
end
task :custom_event do |event|
websockets.each { |ws| ws.write event.to_json }
end
end
s = AngeloStressTest.run
Thread.new do
loop do
sleep(1)
3.times { s.custom_event( {a: 'hello' * 10E6} ) }
print '*'
end
end
puts 'started'
gets Just run that and open a websocket from your browser. |
Usually this sort of thing happens when you start multiple server instances on top of each other, but I would need to look further into angelo to fully see the implications of your repro. |
hmm, it seems to be somewhere between 10E4 and 10E5 as the multiplier that the error is raised. prior to that size of message, it seems to work. the error in question seems to be coming from |
My code production code sends short strings (usually less than 5000 characters), but sometimes I got that error. |
This happened a couple of times:
calling this task:
I saw this error a couple of times recently.
Do you think it can be an Angelo issue or can it be a problem of one of its dependency?
I found this
The text was updated successfully, but these errors were encountered: