Hi Cerdeira!
On Wed Sep 02 08:54:26 2009, cerdeira wrote:
Show quoted text> the timer for handling connection timeout conditions does not seem to
> get canceled upon a successful connection establishment.
>
> more precisely, in SimpleConnection.pm the watcher held in $self->
> {con_tout} is not deleted in function finish_connect as it should
Thanks for the report. Unfortunately Net::XMPP2 is deprecated.
You should use AnyEvent::XMPP, which is just a rename of Net::XMPP2.
The bug is fixed in AnyEvent::XMPP. Conversion of your code to it
should be almost trivial (replace Net::XMPP2 with AnyEvent::XMPP).
Unfortunately there is a new version coming up soon for AnyEvent::XMPP,
which has an incompatible API. If you are interested you are
free to look into the new version in the 'connection_ref' branch
in my git repository:
http://git.ta-sa.org/git/AnyEvent-XMPP/commit/?h=connection_ref
The new API is mostly stable, all that is missing is documentation.
So: If you are into unreleased stuff you are free to look into the new API.
If you don't want to look into it you can just use the current version
of AnyEvent::XMPP that is on CPAN, but be aware that upgrading in future
might break your code due to an incompatible API. I'll keep old versions
online on cpan.
Thanks & Greetings,
Robin