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

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

Author Topic: roster update hanging bot up  (Read 10310 times)

0 Members and 2 Guests are viewing this topic.

Offline Heffalomp

  • BeBot Apprentice
  • ***
  • Posts: 80
  • Karma: +0/-0
Re: roster update hanging bot up
« Reply #30 on: November 29, 2009, 07:32:07 pm »
Looks to me this breaks alts system a little bit now...

Seems to just tell you it added the person but woun't even list it's name without stats when you do !alts on the main(or any other alt registerd to same main) that alt is registerd to, but if you try to add it again or do a manual whois it shows as an alt, didn't have this problem before I tried the modified tools modules atleast, but I get no errors in console from what I can see
"Ubuntu" is an ancient African word, meaning "I can't configure Slackware"

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: roster update hanging bot up
« Reply #31 on: November 30, 2009, 02:55:25 pm »
Technically it shouldnt break it any more than it already was. It would just cause it to "break faster" as in instead of waiting 60 seconds to discover that, "gee wiz, i guess Funcom server isnt going to respond" it now figures this out a tad faster stopping the bot from hanging while it waits.

While it is possible that Funcom servers eventually would respond before the 60 seconds are up, i really don't think a timeout of 10 seconds is an unreasonable short time to wait for a responce from a web server.

Feel free to play around with the timeout value on line 94
Code: [Select]
function get_site($url, $strip_headers = 0, $server_timeout = 5, $read_timeout = 10)
read_timeout is the one you want to change.

Let me know if you find a sweet spot that is not excessive in terms of hanging the bot, keeping in mind that there will be times when the bot has to make several lookups in quick succession.
BeBot Founder and Fixer Kingpin

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: roster update hanging bot up
« Reply #32 on: December 01, 2009, 03:44:56 am »
Hey Khalem,

My bots are already set to:

Code: [Select]
        function get_site($url, $strip_headers = 0, $server_timeout = 25, $read_timeout = 30)

and

Code: [Select]
        function get_site_sock($url, $strip_headers = 0, $server_timeout = 5, $read_timeout = 10)

I will play with these numbers to see what works best for me. The sock settings are actually smaller than the cURL settings if I read this correctly?

Offline dillinger

  • BeBot Apprentice
  • ***
  • Posts: 91
  • Karma: +0/-0
Re: roster update hanging bot up
« Reply #33 on: December 06, 2009, 03:23:22 pm »
So far so good, but on all the posts here i didn't found any solution! Is there a clear comment whats to do here, I'll still get the error:

Code: [Select]
tocbot [GROUP]  [MSG]   [] Deadplaya: <a style="text-decoration:none" href="itemref://4085539/4085539/80/eccc0c9:cf85bdc6:a2b1a0f2:c60633b4/eccc0c9:cf85bdc6:a2b1a0f2:c60633b4">[Grizzly-Brigantine][/link]

Warning: socket_connect(): unable to connect [0]: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht ordnungsgemäss reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.

in C:\xampp\php\main\14_Tools.php on line 171

It's very confusing, sometimes when a player is posting items it won't show this error and sometimes it does.

I'm using PHP Version 5.3.0, think this is not bad at all.

Is this a problem located by Funcom? Or can you post a "updated" version of the 14_Tools.php file?

Thanx for your support!

dill

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: roster update hanging bot up
« Reply #34 on: December 06, 2009, 04:13:42 pm »
There is a link to the latest Tools file which will output more useful information further up. Although atm Launchpad is experiencing some issues with their bazaar viewer.

Your problem has nothing to do with Funcom, however it would appear that a module you are using, most likely items is trying to connect to a server to lookup or submit item information and failing to connect to the server.
BeBot Founder and Fixer Kingpin

 

* Recent Posts
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 ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

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