[jdev] Net::Jabber and Lost connection!.

Alexey Nezhdanov snake at penza-gsm.ru
Fri Jul 9 04:47:26 CDT 2004

В сообщении от 9 Июль 2004 13:10 Alberto De Boni написал(a):
> Hi all,
>     i'm developing a simple jabber robot. I'm using Perl Net::Jabber
> module version 1.29.
> All works almost fine... the only odd thing happens when i lost
> connection to master server.
> In this case Process function return an undef....
> I'm trying to close previous connection, then make a new one using Same
> object and Connect function.
> But as soon as i try to Send Presence, Jabber told me that :
> There was an error in the last call to Process that you did not check
> for and
> handle.  You should always check the output of the Process call.  If it was
> undef then there was a fatal error that you need to check.  There is an
> error
> So.. what is the correct way to handel Lost Connection?

Can't say for Net::Jabber library but, f.e. jabberpy library hasn't ability to 
restore connection after it was brocket. And since I am author of another 
xmpp library I can say that it is not just such easy to restore connection. 
There are a lot of caveats on this way.
Probably there can be the same issue in this library that you are talking 

> Thanks.
>     Alberto

Alexey Nezhdanov

More information about the JDev mailing list