When private gem server not available, rubygems hangs #324

Closed
davetron5000 opened this Issue May 4, 2012 · 1 comment

Projects

None yet

2 participants

@davetron5000

Have multiple sources configured, and one is a private server on my VPN. When not connected to the VPN, a gem install hangs. In this case, the my computer knows the server's IP address, even though it cannot reach it.

Confirmed that this is an issue with 1.8.24.

gem sources
*** CURRENT SOURCES ***

http://rubygems.org/
http://geminabox.whatever.net/

geminabox.whatever.net is only available when I'm on my company's VPN, so a ping will know the IP address, presumably from having cached it before, but the host is unreachable until I connect to the VPN

Possible related to #101

@drbrain
Member
drbrain commented Nov 27, 2012

How long did you wait?

RubyGems expects all sources to be available and will raise an exception when EHOSTDOWN is returned, for example. Perhaps the timeout is too long. RubyGems uses the default timeout from Net::HTTP which is 30 seconds, IIRC.

I am going to close this ticket. Please reopen if you can show it hangs infinitely.

@drbrain drbrain closed this Nov 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment