PDA

View Full Version : $http_proxy handled incorrectly.


Arafails
12-25-2008, 03:14 PM
I was having some severe problems with my updater, and eventually tracked it down to this.

I had this variable set as per spec to a uri ( http://proxy.example.com:port/ ), and the resource updater seems to just split at the first colon, resulting in a lot of gethostbyname(http) calls, resulting predictably in failure.

After unsetting the variable on a hunch, everything worked fine.

arlick
12-25-2008, 04:20 PM
A quick fix try adding ip-domain to the file /etc/hosts

or you can try tsocks. Regnum (im not sure) is not able to manage proxy connection, so with that program you can proxify it.

Arafails
12-26-2008, 10:58 AM
No, in fact that's incorrect. This is purely to do with the http updater. Having the environment variable set correctly was causing it to fail ro download updates, because it was trying to resolve the address of host "http" – which doesn't exist on my local network. This has been very distressing with the recent updates.

The problem stemmed from the fact the Regnum Online incorrectly does not attempt to resolve the host part of a uniform resource identifer in the http_proxy variable, but goes straight to the fallback of attempting to resolve the host part of a host:port pair (which was correct for a number of programs, mostly console web browsers, back in the mid 90s). When this (inevitably if your environment is set per spec) fails, it then simply decides it can't download anything from the update server, instead of attempting to open a direct connection. This causes, for example and variously, problems you might have had with spawning in an aquarium with the mobs hovering above you after the 1.0 update, Christmas trees and boats being displayed as untextured boxes, or item and npc names (and speech) to appear as error texts.

I have already worked around the problem and in fact provided the workaround in the first post. I have no intention of proxying the actual game traffic for any reason.

ArcticWolf
12-26-2008, 04:40 PM
Thank you for your report, I'll add it to the list of known problems in the Spanish forum in case someone else needs it.