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

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

Author Topic: socket_read error  (Read 4362 times)

0 Members and 1 Guest are viewing this topic.

Offline Mojoh

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
socket_read error
« on: July 20, 2010, 07:27:08 pm »
Hello

My bebot is coming back with an error after being connected to server for a while.

Warning: socket_read(): unable to read form fsocket [10054]:  An existing connection was forcibly closed by the remote host. in C:\BEBot\Sources\AOChat.php on line 311
Read error: An existing connection was forcibly closed by the remote host.


Any help on this matter would be appriciated.

Here is the subroutine from AOChat
function read_data($len)
   {
      $data = "";
      $rlen = $len;
      while($rlen > 0)
      {
Line 311**if(($tmp = socket_read($this->socket, $rlen)) === false)
         {
            if(!is_resource($this->socket))
            {
               $this->disconnect();
               die("Read error: $last_error\n");
            }
            else
            {
               printf("Read error: %s\n", socket_strerror(socket_last_error($this->socket)));
               return "";
            }
         }

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: socket_read error
« Reply #1 on: July 21, 2010, 08:13:05 pm »
The only cause I know of for this to happen is due to the character being logged in again.

However I'm not sure about if there are any other instances the AoC chatservers might disconnect you forcibly.
BeBot Founder and Fixer Kingpin

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


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

* Who's Online
  • Dot Guests: 203
  • 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