Booya
collapse collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Search


* Board Stats

  • stats Total Members: 1074
  • stats Total Posts: 18300
  • stats Total Topics: 2487
  • stats Total Categories: 7
  • stats Total Boards: 31
  • stats Most Online: 500

Author Topic: socket problem  (Read 4511 times)

0 Members and 1 Guest are viewing this topic.

Offline cthulhu

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
socket problem
« 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
That is not dead which can eternal lie.
And with strange aeons even death may die.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: socket problem
« Reply #1 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.

Offline cthulhu

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: socket problem
« Reply #2 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 :)
« Last Edit: January 10, 2008, 02:18:57 pm by cthulhu »
That is not dead which can eternal lie.
And with strange aeons even death may die.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: socket problem
« Reply #3 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.

 

* Recent Posts

0.7.0 updates by bitnykk
[May 17, 2020, 04:22:04 pm]


Stats module by bitnykk
[April 16, 2020, 04:45:43 pm]


OnlineOrg by Hell
[February 28, 2020, 11:21:55 pm]


AO Bots - discord server by Kjellis1234
[January 23, 2020, 04:17:04 pm]


Offline AA training timer module by Kjellis1234
[August 29, 2019, 11:12:14 pm]

* Who's Online

  • Dot Guests: 181
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Forum Staff

bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2020, SimplePortal