Debug a stopped EM loop

28 views
Skip to first unread message

Arindam Mukherjee

unread,
Sep 5, 2016, 2:18:24 AM9/5/16
to EventMachine
I am running EM reactor on a separate thread in Ruby application. I use it to read requests off AMQP and respond. I noticed that after processing one or two requests the processing stops - I figured this out by starting a periodic timer:

EM.add_periodic_time(2) do
  puts "Tick"
end

I have noticed that this stops printing the ticks after a while. But I can get any further on why the loop is terminating - an exception maybe? How can I debug this?

Arindam

Aman Gupta

unread,
Sep 5, 2016, 4:07:02 AM9/5/16
to EventMachine
Try Thread.abort_on_exception=true
--
You received this message because you are subscribed to the Google Groups "EventMachine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eventmachine...@googlegroups.com.
To post to this group, send email to eventm...@googlegroups.com.
Visit this group at https://groups.google.com/group/eventmachine.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages