for some diagnostics it can be useful to turn assertions on. This can be done by inserting the code as shown below. Notice the subs have to be defined before use()ing POE!
sub POE::Kernel::ASSERT_DEFAULT () { 1 }
sub POE::Kernel::TRACE_SIGNALS () { 1 }
use POE;if you have long running handlers that will hog the process, see: http://poe.perl.org/?POE_Cookbook/Looping for an idea of how to restructure it.