L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 12:55:57 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: socket problem
Pages: [1]   Go Down
« previous next »
Print
Author Topic: socket problem  (Read 395 times)
0 Members and 1 Guest are viewing this topic.
cthulhu
Freshman
*
Offline Offline

Posts: 9


socket problem
« on: January 10, 2008, 05: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
Logged

That is not dead which can eternal lie.
And with strange aeons even death may die.
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: socket problem
« Reply #1 on: January 10, 2008, 06:35:06 AM »

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.
Logged
cthulhu
Freshman
*
Offline Offline

Posts: 9


Re: socket problem
« Reply #2 on: January 10, 2008, 08:16:19 AM »

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 Smiley
« Last Edit: January 10, 2008, 08:18:57 AM by cthulhu » Logged

That is not dead which can eternal lie.
And with strange aeons even death may die.
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: socket problem
« Reply #3 on: January 11, 2008, 12:12:22 PM »

You should switch to a newer version Wink

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.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: socket problem
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 17
Total: 17

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.275 seconds with 30 queries. (Pretty URLs adds 0.029s, 4q)
Loading...