-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I use fiber_loop to run many session to collect bandwidth data periodically. but i always encounter stack too deep exception from dispatcher.rb:99
def fiber_loop(options = {})
timeout = options[:timeout]
sleep_time = options[:sleep] || 0.2
Fiber.new {
loop do
num_handled = poll(timeout)
if num_handled == 0
f = Fiber.current
EM.add_timer(sleep_time) do
f.resume #-> raise exception .line 99
end
Fiber.yield
end
end
}.resume(nil)
end
em_loop method also has this issue. but it can works longer than fiber_loop
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels