BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: Shelly on May 30, 2009, 03:04:12 pm
-
I just upgraded/replaced the code I was running from 0.5.5 to 6.3 and now the !items command times out and hangs the bot until it gets the timeout message.
This function worked in previous incarnations, and I have rummaged thru the code, but can't figure out where it is going wrong.
botname [2009-05-30 13:05:53] [GROUP] [MSG] [org channel] org_member: !Items Stalker
Warning: socket_connect(): unable to connect [110]: Connection timed out in /opt/home/bot/botname/main/14_Tools.php on line 166
botname [2009-05-30 13:09:02] [GROUP] [MSG] [org channel] org_member: !Online
botname [2009-05-30 13:09:02] [GROUP] [MSG] [org channel] botname: Connection timed out
botname [2009-05-30 13:09:02] [GROUP] [MSG] [org channel] botname: 1 members online in Guild. 1 Guests Online 1 characters in privategroup:: [link]click to view[/link]
-
Resolved...
vhabot.net seems to have moved to an ip network that was previously a reserved network. 79.0.0.0/8 This was being blocked at our firewall, so not sure how it was working before.
Sometimes ya gotta look beyond the code ^_^
-
Makes me wonder why that range was blocked to begin with :)
But you're observations are right. The server used to be in 85.92.x and now is in 79.99.x.
-
Makes me wonder why that range was blocked to begin with :)
Hi Vhab,
The 79/8 was in a list published as bogon... in other words the IANA had not released it yet for use, so it was not considered a valid address range. To cut down on ip spoofing, many firewalls block these IANA Bogon addresses.
BTW... Vhab, Thanks for all you do for the bot admins! AND thanks to all those coders who come up with the nice modules.
Shelly