mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Describe resolv_timeout in NEWS
This commit is contained in:
		
							parent
							
								
									f2d1808e73
								
							
						
					
					
						commit
						97416ae54c
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		
							
								
								
									
										9
									
								
								NEWS.md
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								NEWS.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -267,6 +267,15 @@ Outstanding ones only.
 | 
			
		|||
 | 
			
		||||
    * Update to Reline 0.1.5
 | 
			
		||||
 | 
			
		||||
* Socket
 | 
			
		||||
 | 
			
		||||
    * TCPSocket.new now supports `resolv_timeout`. [[Feature #17134]]
 | 
			
		||||
 | 
			
		||||
      ```ruby
 | 
			
		||||
      # it raises SocketError if name resolution is not finished within resolve_timeout.
 | 
			
		||||
      tcp_socket = TCPSocket.new("example.com", 80, resolv_timeout: 10)
 | 
			
		||||
      ```
 | 
			
		||||
 | 
			
		||||
## Compatibility issues
 | 
			
		||||
 | 
			
		||||
Excluding feature bug fixes.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue