eventmachine/eventmachine — Issue #274: JRuby timers are not reliably scheduled
Author: joerixaop
Created: 2011-10-25 19:58:54+00:00
State: open

If you start EventMachine in a separate thread and without block then timers that you add later are never executed. Unless you force EventMachine to wake up by also setting a next_tick event.

The problem is that if there are not timers already checkIO goes into an indefinite sleep, where it is only woken by a call to next_tick (or EM.stop), or of course actual IO.

The C implementation does not have this problem, so I guess it's a bug in the java implementation.