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?
September 06, 2008, 09:42:34 PM

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 316 times)
0 Members and 1 Guest are viewing this topic.
cthulhu
Freshman
*
Offline Offline

Posts: 2


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: 1022


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: 2


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: 1022


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
Security
by Alreadythere
[Today at 10:02:42 AM]

Probs with relay from gue...
by Temar
[Today at 09:03:06 AM]

Raid spam in guild chat
by Temar
[Today at 09:01:18 AM]

Org Relaying
by Nytridr
[Today at 01:34:35 AM]

Link 2 Guilds via 2 Bots?
by Temar
[September 05, 2008, 04:22:40 PM]

SVN download
by clashbot
[September 05, 2008, 05:12:59 AM]

TWC
by Temar
[September 05, 2008, 12:27:23 AM]

How to find the guild ID?...
by Irinir
[September 03, 2008, 02:58:54 PM]

Deactivate Autoadding mem...
by Temar
[September 03, 2008, 02:49:01 PM]

0.4 Modules in 0.5 -- fou...
by Temar
[September 03, 2008, 11:06:42 AM]
Stats
Members
Total Members: 961
Latest: daltarak
Stats
Total Posts: 10408
Total Topics: 1412
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 19
Total: 20
Jlee

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