Home > Archive > PERL POE > September 2006 > alias_remove() call in PoCo::Client::TCP
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 |
alias_remove() call in PoCo::Client::TCP
|
|
| Pedro Melo 2006-09-04, 7:06 pm |
| Hi,
around line 273 of PoCo::Client::TCP, there is a call to alias_remove().
273 $kernel->alias_remove($alias) if defined $alias;
Inside an aplication I was writting, I was expecting that the alias
would still be valid during the Disconnected event but line 273 is
before that.
I was wondering if does anybody see a problem if we move that
alias_remove() to the end of the callback, around line 289.
Patch attached, in case this is kosher.
| |
| Rocco Caputo 2006-09-06, 7:08 pm |
| Committed as revision 2110. Thanks.
--
Rocco Caputo - rcaputo@pobox.com
On Sep 4, 2006, at 10:06, Pedro Melo wrote:
> Hi,
>
> around line 273 of PoCo::Client::TCP, there is a call to
> alias_remove().
>
> 273 $kernel->alias_remove($alias) if defined $alias;
>
> Inside an aplication I was writting, I was expecting that the alias
> would still be valid during the Disconnected event but line 273 is
> before that.
>
> I was wondering if does anybody see a problem if we move that
> alias_remove() to the end of the callback, around line 289.
>
> Patch attached, in case this is kosher.
>
> <patch_poco_client_tcp_alias_remove.diff>
>
> Best regards,
> --
> Pedro Melo
> JID: xmpp:melo@simplicidade.org
|
|
|
|
|