BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: cthulhu on January 10, 2008, 11:04:07 am

Title: socket problem
Post by: cthulhu on January 10, 2008, 11:04:07 am
Hey folks

I got an error last night:

Read error: EOF

Warning: socket_write() expects parameter 1 to be resource, null given in /var/www/binbot/AOChat.php on line 447

Warning: socket_select(): supplied argument is not a valid Socket resource in /var/www/binbot/AOChat.php on line 332

Warning: socket_select(): no resource arrays were passed to select in /var/www/binbot/AOChat.php on line 332

the last two lines of the error filled were logged over and over again as the bot tried to reconnect. In the end the log file was around 2GB.

Anyone got an idea what happened there?

Did Funcom refused my connection for any reason?

One of the main problems is that while the bot is feeding the log file it moves the cpu up to 100%.
But think that can be solved if I put something like a die(); into the function that writes that error msg.

Didn't really had time to look into it but would be very pleased if you would have a suggestion for me.

greetings
Title: Re: socket problem
Post by: Alreadythere on January 10, 2008, 12:35:06 pm
Just delete the error log if it's too large, won't harm the bot.

Another question: which version of bebot and AOChat.php are you running? I just checked all tagged versions in the SVN for the lines 332 and 447 in AOChat.php, and not a single one contained a socket_write() or socket_select() in any of those lines.
Title: Re: socket problem
Post by: cthulhu on January 10, 2008, 02:16:19 pm
ops sry

main.php:$bot_version = "0.2.8";

$Id: AOChat.php,v 1.19 2005/11/29 23:22:46 os Exp

the large log file isn't really a problem as I just logged it to see what errors it throws out.
Usually I just pipe it to /dev/null :)
Title: Re: socket problem
Post by: Alreadythere on January 11, 2008, 06:12:22 pm
You should switch to a newer version ;)

Though I'm not sure if that would help with the warnings. They EOF error and the warnings point to some problem in the connection between your server and the FC chatserver. No clue what the real problem is.
SimplePortal 2.3.7 © 2008-2024, SimplePortal