On Sun, Sep 08, 2002 at 01:31:34AM +0100, Adam Feakin wrote:
> A followup to my message below:
> Gaim does not check proxy settings everytime it is started, only when
> certain parts of it are empty (host and port I guess). But, sometimes
> the proxy values get reset to empty for no known reason and then the
> next time gaim is started it attempts to discover the settings from the
> environment and goes wrong.
> The function gaimrc_parse_proxy_uri is called to check the $http_proxy
> string, and sometime after that the string that was passed to
> gaimrc_parse_proxy_uri is used to set the proxy values. Unfortunatly,
> gaimrc_parse_proxy_uri is mangling the string but I cant see why, I just
> know this from sticking printfs at the begining and end of the function
> to see what value const char *proxy has :). I dont see anything in
> there that should change it, maybe I just wasnt looking close enough.
a patch to gaim_parse+proxy_uri has been submitted to sf. sean doesn't get
internet untill the 13th, rob is just now getting his computer in working
order, so expect the fix soon.
as to why it sometimes goes blank: for good or ill, gaim resets those values
if it ever fails to find the proxy specified. that _might_ be what you are seeing.
> On Thu, Aug 29, 2002 at 05:27:12AM +0100, Adam Feakin wrote:
> > I have just realised why gaim was breaking the proxy settings whenever I
> > started it.. http_proxy is set in environment and for some reason gaim
> > decides it should use that proxy even though it is set not to use a
> > proxy :)
> > thats bad, because http_proxy is set to "http://localhost:8080/" and
> > http_proxy_port is not set at all (which gaim later checks after
> > discovering http_proxy).
> > It looks like gaim also checks for HTTP_PROXY and HTTPPROXY environment
> > variables, so presumably if I set those to anything then gaim would fail
> > to connect anywhere.
> > all because of
> > if (proxyhost)
> > proxytype = PROXY_HTTP;
> > in src/gaimrc.c
> > All gaim ends up with after trying to discover proxy settings is yes to
> > use a http proxy, and random strings for the proxy settings. This
> > happens with both the 0.59 and 0.60 cvs trees. Gaim should probably
> > only attempt to discover proxy settings from environment if there is no
> > .gaimrc file present, that is the most sensible suggestion I can come up
> > with.
> > --
> > Adam
> > adamf@...
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> Gaim-devel mailing list
-This email is made of 100% recycled electrons.
-If something can go wrong.... FIX IT!
If it's Microsoft...delete it.
-There are three ways to get something done:
(1) Do it yourself.
(2) Hire someone to do it for you.
(3) Forbid your kids to do it.