in reply to Re: connection question with Net::OSCAR
in thread connection question with Net::OSCAR

I went and cut the connection. Waited a few minutes for everything to drop. Then i restored the connection. The bot never recovers and just times out. I have to manually kill the bot and restart it for it to reconnect back to the aim network. So now is there a way through Net::OSCAR where it can handle being disconnected and recover from it or will I have to come up with a different solution for handling it being dropped from the network?

  • Comment on Re^2: connection question with Net::OSCAR

Replies are listed 'Best First'.
Re^3: connection question with Net::OSCAR
by andyford (Curate) on Dec 07, 2006 at 15:28 UTC

    I'm not familiar with the module, but if you can't find any auto reconnect methods in the documentation, then you'll have to do it yourself.
    Just do some trivial operation that you know should always succeed and reconnect if it fails.

    non-Perl: Andy Ford

      Yea, I went over the module documentation a few times and really didn't see anything (that i can understand) that looked like I needed. I'll come up with something outside of the module to handle this. Thanks again!