From: Adam F. <ad...@sn...> - 2002-08-29 04:28:26
|
Good morning, 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[0]) 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 ad...@sn... |
From: Adam F. <ad...@sn...> - 2002-09-08 00:31:43
|
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. 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[0]) > 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 > ad...@sn... -- Adam ad...@sn... |
From: Luke S. <lsc...@re...> - 2002-09-08 00:37:47
|
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. luke > > > > 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[0]) > > 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 > > ad...@sn... > > -- > Adam > ad...@sn... > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Gaim-devel mailing list > Gai...@li... > https://lists.sourceforge.net/lists/listinfo/gaim-devel -- -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. |
From: Adam F. <ad...@sn...> - 2002-09-08 00:43:43
|
On Sat, Sep 07, 2002 at 08:37:42PM -0400, Luke Schierer wrote: > 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. > luke That is probably what is happening, as I am on a dialup connection which gets disconnected every 2 hours - it has also been quite unreliable lately so I have been clicking the 'Cancel all' button when gaim tries to auto-login. -- Adam ad...@sn... |
From: Luke S. <lsc...@re...> - 2002-09-08 00:51:07
|
On Sun, Sep 08, 2002 at 01:43:34AM +0100, Adam Feakin wrote: > On Sat, Sep 07, 2002 at 08:37:42PM -0400, Luke Schierer wrote: > > 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. > > luke > > That is probably what is happening, as I am on a dialup connection which > gets disconnected every 2 hours - it has also been quite unreliable > lately so I have been clicking the 'Cancel all' button when gaim tries > to auto-login. instead of cancelling all each time, why not just use the account manager to turn off autologin? luke > > -- > Adam > ad...@sn... > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Gaim-devel mailing list > Gai...@li... > https://lists.sourceforge.net/lists/listinfo/gaim-devel -- -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. |
From: Adam F. <ad...@sn...> - 2002-09-08 00:57:42
|
On Sat, Sep 07, 2002 at 08:51:03PM -0400, Luke Schierer wrote: > instead of cancelling all each time, why not just use the account manager to turn off > autologin? > luke Oh, its not that I dont want them to auto-login, I only cancel it when my connection is playing up. Otherwise the logging in progress bars window stays there for ages. There is nothing wrong with the auto-login :) its my ISP/phoneline -- Adam ad...@sn... |