mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
This allows "gem install /path/to/local.gem" to be successful on a machine without a network connection. [ruby-core:67411] [Bug #10712] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									1b2276af64
								
							
						
					
					
						commit
						89ba151440
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Thu Jan  8 07:17:14 2015  Eric Wong  <e@80x24.org>
 | 
			
		||||
 | 
			
		||||
	* lib/resolv.rb: consider ENETUNREACH as ResolvTimeout
 | 
			
		||||
	  [ruby-core:67411] [Bug #10712]
 | 
			
		||||
 | 
			
		||||
Thu Jan  8 00:13:52 2015  Tanaka Akira  <akr@fsij.org>
 | 
			
		||||
 | 
			
		||||
	* lib/open3.rb: Open3 properly passes non-keyword hash args to spawn.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -670,8 +670,8 @@ class Resolv
 | 
			
		|||
        timelimit = start + tout
 | 
			
		||||
        begin
 | 
			
		||||
          sender.send
 | 
			
		||||
        rescue Errno::EHOSTUNREACH
 | 
			
		||||
          # multi-homed IPv6 may generate this
 | 
			
		||||
        rescue Errno::EHOSTUNREACH, # multi-homed IPv6 may generate this
 | 
			
		||||
               Errno::ENETUNREACH
 | 
			
		||||
          raise ResolvTimeout
 | 
			
		||||
        end
 | 
			
		||||
        while true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue