For Programmers: Free Programming Magazines  


Home > Archive > PERL POE > September 2006 > Interesting problem detaching an aliased session.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Interesting problem detaching an aliased session.
Kenneth Flegal

2006-09-11, 7:06 pm

I have a session that is aliased and that I need to detach so that it
will live on without keeping the session that spawned it alive. I am in
a large loop that will post an event roughly every 10 seconds to the
aliased session. I find it odd that in the first session when I create
the aliased session if I detach it and then try to post to one of it's
events (using the alias as the first argument not the session object or
ID) that the event I am posting to never fires off. On any subsequent
runs when posting to this aliased session I do not have problems. At
this point I have simply been doing the post before I detach and have no
problems. Considering how easily I can work around this problem I am
more just sending this out of curiosity. Has anyone else ran into this
problem? Is this the expected behavior?



- Kenny


Kenneth Flegal

2006-09-11, 7:06 pm

Sorry, when I say detach I mean by calling $kernel->detach_child('alias
name here') from the parent session...=20

-----Original Message-----
From: Mathieu Longtin [mailto:mrdamnfrenchy@yahoo.com]=20
Sent: Monday, September 11, 2006 1:51 PM
To: Kenneth Flegal; poe@perl.org
Subject: Re: Interesting problem detaching an aliased session.

What do you mean by detaching? Removing the alias of the
aliased session?

--- Kenneth Flegal <kflegal@valueclick.com> wrote:

> I have a session that is aliased and that I need to
> detach so that it
> will live on without keeping the session that spawned it
> alive. I am in
> a large loop that will post an event roughly every 10
> seconds to the
> aliased session. I find it odd that in the first session
> when I create
> the aliased session if I detach it and then try to post
> to one of it's
> events (using the alias as the first argument not the
> session object or
> ID) that the event I am posting to never fires off. On
> any subsequent
> runs when posting to this aliased session I do not have
> problems. At
> this point I have simply been doing the post before I
> detach and have no
> problems. Considering how easily I can work around this
> problem I am
> more just sending this out of curiosity. Has anyone else
> ran into this
> problem? Is this the expected behavior?
>=20
> =20
>=20
> - Kenny=20
>=20
>=20



________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20
Mathieu Longtin

2006-09-11, 7:06 pm

What do you mean by detaching? Removing the alias of the
aliased session?

--- Kenneth Flegal <kflegal@valueclick.com> wrote:

> I have a session that is aliased and that I need to
> detach so that it
> will live on without keeping the session that spawned it
> alive. I am in
> a large loop that will post an event roughly every 10
> seconds to the
> aliased session. I find it odd that in the first session
> when I create
> the aliased session if I detach it and then try to post
> to one of it's
> events (using the alias as the first argument not the
> session object or
> ID) that the event I am posting to never fires off. On
> any subsequent
> runs when posting to this aliased session I do not have
> problems. At
> this point I have simply been doing the post before I
> detach and have no
> problems. Considering how easily I can work around this
> problem I am
> more just sending this out of curiosity. Has anyone else
> ran into this
> problem? Is this the expected behavior?
>
>
>
> - Kenny
>
>



________________________________________
__________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Rocco Caputo

2006-09-12, 4:15 am

On Sep 11, 2006, at 16:09, Kenneth Flegal wrote:

> I have a session that is aliased and that I need to detach so that it
> will live on without keeping the session that spawned it alive. I
> am in
> a large loop that will post an event roughly every 10 seconds to the
> aliased session. I find it odd that in the first session when I create
> the aliased session if I detach it and then try to post to one of it's
> events (using the alias as the first argument not the session
> object or
> ID) that the event I am posting to never fires off. On any subsequent
> runs when posting to this aliased session I do not have problems. At
> this point I have simply been doing the post before I detach and
> have no
> problems. Considering how easily I can work around this problem I am
> more just sending this out of curiosity. Has anyone else ran into this
> problem? Is this the expected behavior?


Offhand I don't see why an event posted after detaching the child
should be lost. The session still exists. It still has its alias.
It should be receiving its events.

If you can whip up a quick test case, attach it to a message to bug-
poe@rt.cpan.org. Thanks.

--
Rocco Caputo - rcaputo@pobox.com


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com