[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: proxy support (was Re: New Tarball with connections fixed.)

From: Mark Benedetto King <bking_at_answerfriend.com>
Date: 2001-11-01 18:43:32 CET

On Thu, Nov 01, 2001 at 08:08:55AM +0100, Daniel Stenberg wrote:
> On Wed, 31 Oct 2001, Greg Stein wrote:
>
> > There have been a couple different approaches to handling proxies.
> > Honestly, I'm not really sure what is "best".
> >
> > I know that an environment variable is not preferred, unless there is a
> > hugely widespread, typical usage (like EDITOR).
>
> ... and there just isn't one that widespread.
>
> > We just don't want to use environment variables, if at all possible.
>
> IMO, we could support the ones lynx, wget and others use, but that would be
> an additional feature and should most likely be done purely by the client
> code and we shouldn't depend on it.

Right. lynx and wget both use "http_proxy". Yes, it should be set
by the client code, instead of hard-coded in libsvn_ra_dav, which is
where I put it (I was trying to minimize the scope of the change).

>
> > Second, we need to consider that proxies require (at least) four more
> > pieces of information:
> >
> > 1) proxy host
> > 2) proxy port (default to 80 or whatever)
> > 3) proxy username
> > 4) proxy password
> >

They could, in theory, require other things (kerberos tickets, etc).

> > Somehow, we need to be able to specify any/all of these. Of course, some
> > can go in the .svnrc file, but they could also be needed on a per-project
> > basis.
>
> I could immediately think of situtations when they will be needed on a
> per-project basis:
>
> Like the situation on my current work place. We have the whole internal
> source repository on the internal network, but we use a HTTP proxy to access
> the web. So if I wanna use svn for both inside work sources and remote
> source, I need to set a proxy for for the remote sources only.
>
> More specificly, they actually are on a per-host basis depending on where the
> host is that we get the sources from.
>
> So, either we let the client keep a list with hosts that "don't use the
> default rule", or we add command line flags that says to alter the default.
> Then we can have the default proxy informations in the .svnrc file. If the
> default would be to not use a proxy, we need to be able to specify all these
> four different variables on the command line...
>

I can throw another twist in: when I'm at work, I'm behind a proxy, so I want
one. When I'm not at work, I'm behind a NAT gateway, so I don't. Of course,
I could solve this by switching .svnrc files based on where I am, but it makes
my life easier to simply set an environment variable when I'm at work.

I'm not so happy with command-line approaches; it's a PITA to type a proxy
address on each svn invocation.

--ben

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:47 2006

This is an archived mail posted to the Subversion Dev mailing list.