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 "";
}
}