Mailinglist Archive: opensuse-factory (422 mails)

< Previous Next >
Re: [opensuse-factory] global proxy configuration
  • From: Katarina Machalkova <kmachalkova@xxxxxxx>
  • Date: Tue, 20 Jan 2009 17:23:07 +0100
  • Message-id: <200901201723.08612.kmachalkova@xxxxxxx>
Hi z ( and others)

I'll try to shed some more light into the issue.

1)can global proxy enabling\disabling be performed on-the-fly, without
need of relogin? or are there some troubles with it?

It depends on the application. In general, if the application reads proxy
settings from some config file (sysconfig, for example), you don't need to
re-login. Application picks up proxy settings on the next start.
On the other hand, if the application relies upon $http_proxy ($FTP_PROXY,
whatever) environment variable being set, restarting application is not
enough and relogin is needed. It is because these env. variables need to be
updated (there is a script executed upon login doing that).

What happens in YaST and libzypp (and curl, because libzypp is libcurl-based)
is a mix of both approaches:

1) Switching proxy from Off to On:
YaST module writes proxy URL into /root/.curlrc file. Until you log in again,
$http_proxy env. variable remains empty. But we don't mind, because
libzypp's media handling library pokes into /root/.curlrc and uses proxy URL
from there. Everyone is happy :)

2) Switching proxy from On to Off:
YaST module clears /root/.curlrc file, but until relogin, $http_proxy variable
remains set and libcurl (thus, libzypp too) still uses that URL even though
you don't want to use proxy anymore. Some people are not that happy anymore
:(

2)now proxy requires relogin to work, but yast does not warns user
about it, when user changes proxy settings.

YaST proxy module had pop-up telling user to relogin to apply the
configuration, but we removed it in openSUSE 10.3 (for usability reasons,
afair) :( Come to think of it, it was not so good idea ... now even the help
text does not mention the need of relogin (and even if it did, nobody reads
the help anyway).

Allright, the bug (https://bugzilla.novell.com/show_bug.cgi?id=458708) is
already assigned to me, I'll put the pop-up back.

B.
--
\\\\\ Katarina Machalkova
\\\\\\\__o YaST developer
__\\\\\\\'/_ & hedgehog painter
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups