For Programmers: Free Programming Magazines  


Home > Archive > Ruby > March 2005 > Problem with gems behind a corporate firewall









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem with gems behind a corporate firewall
Glenn Smith

2005-03-29, 9:01 am

Not sure if this is something that can be sorted by gems or is a
problem with our network here.

At work I sit behind a proxy server. To run gems I have to run:

gem update -r -p http://<proxy>:<port>

This has in the past allowed me to update to rails 0.10.1 but when I
run the above again it still just gives me the same version. It's
like the proxy is supplying what it thinks is the latest version
because that's what it has in it's cache, when really I want to force
it to bypass the proxy cache and download the latest version.

To bypass this problem for now I disconnect from the lan and dial up
the internet using the modem and run "gem update" this way, which
downloads the latest stuff, but it's a pain to have to do that all the
time.

Cheers

G




--

All the best
Glenn
Aylesbury, UK


Peņa, Botp

2005-03-29, 9:01 am

Glenn Smith [mailto:glenn.ruby@gmail.com] wrote:

//Not sure if this is something that can be sorted by gems or
//is a problem with our network here.
//
//At work I sit behind a proxy server. To run gems I have to run:
//
//gem update -r -p http://<proxy>:<port>
//
//This has in the past allowed me to update to rails 0.10.1 but
//when I run the above again it still just gives me the same
//version. It's like the proxy is supplying what it thinks is
//the latest version because that's what it has in it's cache,
//when really I want to force it to bypass the proxy cache and
//download the latest version.
//
//To bypass this problem for now I disconnect from the lan and
//dial up the internet using the modem and run "gem update"
//this way, which downloads the latest stuff, but it's a pain
//to have to do that all the time.

It's inside your network.
Look at your proxy log for the exact url of the destination of the remote
gem repository, then tell your proxy not to cache your request for gems
coming fr that src...

//
//Cheers
//
//G

kind regards -botp


Glenn Smith

2005-03-29, 9:01 am

Sounds like I need to talk to our technical support people.
Mmm... don't fancy that on my first day back to work ;o)

Thanx


On Tue, 29 Mar 2005 18:04:21 +0900, "Peņa, Botp" <botp@delmonte-phil.com> wrote:
> Glenn Smith [mailto:glenn.ruby@gmail.com] wrote:
>
> //Not sure if this is something that can be sorted by gems or
> //is a problem with our network here.
> //
> //At work I sit behind a proxy server. To run gems I have to run:
> //
> //gem update -r -p http://<proxy>:<port>
> //
> //This has in the past allowed me to update to rails 0.10.1 but
> //when I run the above again it still just gives me the same
> //version. It's like the proxy is supplying what it thinks is
> //the latest version because that's what it has in it's cache,
> //when really I want to force it to bypass the proxy cache and
> //download the latest version.
> //
> //To bypass this problem for now I disconnect from the lan and
> //dial up the internet using the modem and run "gem update"
> //this way, which downloads the latest stuff, but it's a pain
> //to have to do that all the time.
>
> It's inside your network.
> Look at your proxy log for the exact url of the destination of the remote
> gem repository, then tell your proxy not to cache your request for gems
> coming fr that src...
>
> //
> //Cheers
> //
> //G
>
> kind regards -botp
>
>



--

All the best
Glenn
Aylesbury, UK



Mirko Maischberger

2005-03-29, 9:01 am

Hi

Peņa, Botp wrote:
> It's inside your network.
> Look at your proxy log for the exact url of the destination of the remote
> gem repository, then tell your proxy not to cache your request for gems
> coming fr that src...


Couldn't this be done, as an improvement, with a "Cache-control" header
in the http request by gem itself?

http://www.w3.org/Protocols/rfc2616...14.html#sec14.9

Mirko
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com