collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: socket problem  (Read 8597 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
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 485
  • 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-2024, SimplePortal