BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.3 support => Topic started by: Ebag333 on May 07, 2007, 10:34:49 pm

Title: Warning: socket_read(): unable to read from socket
Post by: Ebag333 on May 07, 2007, 10:34:49 pm
Quote
Warning: socket_read(): unable to read from socket
  • : An established connection was aborted by the software in your host machine. in C:\bots\orgbots\ccibot\Sources\AOChat.php on line 237

Read error: An established connection was aborted by the software in your host machine.

Every now and again I get this spammed many times in my console window until the bot disconnects.

I was using 0.3.3 and got it quite often.  I upgraded to 0.3.4 (from SVN) to see if that helped any...still getting it.

Anyone ever run into this before?
Title: Re: Warning: socket_read(): unable to read from socket
Post by: Alreadythere on May 07, 2007, 11:53:27 pm
Same bot logged in twice? They kick each other after connect then every time.
Title: Re: Warning: socket_read(): unable to read from socket
Post by: Ebag333 on May 08, 2007, 01:32:09 am
Nope.  Already checked that. :)
Title: Re: Warning: socket_read(): unable to read from socket
Post by: Vhab on May 08, 2007, 09:24:00 am
It's not completely uncommon for it to happen.
Networks aren't perfect so you could lose connection every now and then, and that's probebly what happened.
Slight disruption of the connection at some point and you get a bunch of errors stating the connection is gone.
Though, I admit it could be a bit more graceful about it :P
Title: Re: Warning: socket_read(): unable to read from socket
Post by: Ebag333 on May 08, 2007, 10:07:53 pm
Would be nice if it recognized that it'd lost the connection and reconnected automagically. :)

Seems it should be possible to catch if it got this error (or other similar disconnect ones) and throw it into the reconnect cycle.

The real problem is that once I hit this error, it'll flood the bot until eventually it does reconnect (I assume some sort of timeout?), but once it does that it'll infinatly cycle though getting this message, disconnects, and reconnects.
SimplePortal 2.3.7 © 2008-2024, SimplePortal