FIBS Board backgammon forum

Bots & other tech stuff => Other bots & tech stuff. => Topic started by: amarganth on February 25, 2005, 07:06:09 PM

Title: lost connection after inactivity
Post by: amarganth on February 25, 2005, 07:06:09 PM
hi all

may be someone has a hint for me?

the new TourneyStatsBot get a disconnect after half an hour (?) of inactivity. That's normal, if it's a player. but for a bot, who must be active 7x24 hours, i must do something against that.

i tried to send all 15 minutes a "time" command to fibs, but that doesn't work.

how is it realized in other bots? repbot, for example?

thanks in advance for every hint.

amarganth
Title: lost connection after inactivity
Post by: MadMatt on February 25, 2005, 09:35:01 PM
Why wouldn't that work? It's how TourneyBot does it.

TourneyBot's internal scheduler is responsible for sending the time command every 10 minutes (at least I think it's 10). The Scheduler is an object that can execute any given Task after a specified delay. For implementation details, see scheduler.rb in TourneyBot code.

Here is a direct link (http://rubyforge.org/cgi-bin/viewcvs.cgi/TourneyBot/scheduler.rb?rev=1.2&cvsroot=tourneybot&only_with_tag=rel-1_5beta6&content-type=text/vnd.viewcvs-markup) to it.
Title: lost connection after inactivity
Post by: amarganth on February 25, 2005, 09:43:30 PM
Hi MadMatt

I see, you do the same thing.

May be it's the difference: you do it every 10 minutes, i do it every 15 minutes.

I will change it to 10 minutes. I hope it will work correctly then.  :(

Thanks!  :rolleyes: