joyent/node — Issue #2515: nested setTimeout calls can lead to premature process exit
Author: csosborn
Created: 2012-01-11 19:08:13+00:00
State: open

Certain combinations of nested setTimeout and clearTimeout calls lead to a the node process exiting improperly. The exit is clean, with the process object emitting an "exit" event and status code of 0, but it nevertheless happens too early. Additional background is at https://groups.google.com/forum/#!topic/nodejs/w1wBjg61rQg.

Please see https://gist.github.com/1590128 for code that will reproduce this behavior.