I just need some clarification.  When writing a
POE::Component.  If the POE Session using the component just
starts up and posts an event to the component, the only way
for the Session to remain alive long enough to receive a
postback is by either incrementing the SENDER's refcount and
then decrementing it after we do the postback, or by storing
the postback into the heap.

In the Component that I'm trying to write I'm using
$_[KERNEL]->refcount_increment($_[SENDER]->ID, 'keep_alive')
in the state that's being posted to.  If I postback to the
SENDER in the same state and decrement the SENDER's refcount
then the SENDER stays alive long enough to get the
postback.  If I don't post immediately back to the SENDER
but still have the SENDER's refcount incremented shouldn't
the SENDER stay alive until I decrement the refcount?

Regards,
Todd

Reply via email to