Skip Menu |

This queue is for tickets about the POE-Component-WWW-Shorten CPAN distribution.

Report information
The Basics
Id: 32268
Status: resolved
Worked: 10 min
Priority: 0/
Queue: POE-Component-WWW-Shorten

People
Owner: BINGOS [...] cpan.org
Requestors: cpan [...] zoffix.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.09
Fixed in: (no value)



Subject: Unhandled event + possibly redundant code
In sub _start {} you got this code: $kernel->sig_child( $self->{wheel}->PID, '_sig_child' ); Note the 'i' in the 'child'. However, the handler with ->sig_handled exists only for '_sig_chld' (note the missing 'i' in 'chld') Using sub POE::Kernel::ASSERT_DEFAULT () { 1 } reports an unhandled event '_sig_child' Also, what I think (and been told that) is a redundant piece of code: First, we got: sub spawn { $self->{session_id} = POE::Session->create( ### .... )->ID(); } And then later we got: sub _start { $self->{session_id} = $_[SESSION]->ID; } To my understanding $self->{session_id} already has an ID from the spawn() method. If there is nothing wrong with that code I would definitely love to know the reason for such use. Cheers.
Many thanks for the bug report. New version on CPAN.