Actions
Feature #17134
openAdd resolv_timeout to TCPSocket
    Feature #17134:
    Add resolv_timeout to TCPSocket
  
Added by Glass_saga (Masaki Matsushita) about 5 years ago. Updated almost 3 years ago.
Status:
Open
Assignee:
-
Target version:
-
Description
Add resolve_timeout to TCPSocket.new.
It makes DNS timeout customizable in the same way as Socket.tcp.
Files
| resolv_timeout.patch (6.07 KB) resolv_timeout.patch | Glass_saga (Masaki Matsushita), 08/29/2020 05:26 AM | 
        
          
          Updated by Glass_saga (Masaki Matsushita) about 5 years ago
          
          
        
        
          
            Actions
          
          #1
        
      
      - Related to Feature #16381: Accept resolv_timeout in Net::HTTP added
 
        
          
          Updated by Glass_saga (Masaki Matsushita) about 5 years ago
          
          
        
        
          
            Actions
          
          #2
        
      
      - Subject changed from Add resolve_timeout to TCPSocket to Add resolv_timeout to TCPSocket
 
        
          
          Updated by ko1 (Koichi Sasada) about 5 years ago
          
          
        
        
          
            Actions
          
          #3
            [ruby-core:100081]
        
      
      Could you describe API changes more?
        
          
          Updated by Glass_saga (Masaki Matsushita) about 5 years ago
          
          
        
        
          
            Actions
          
          #4
            [ruby-core:100087]
        
      
      - Target version changed from 36 to 3.0
 
It receives resolv_timeout as a keyword argument to specify name resolution timeout.
Example:
# it raises SocketError if name resolution is not finished within resolve_timeout.
tcp_socket = TCPSocket.new("example.com", 80, resolv_timeout: 10)
        
          
          Updated by Glass_saga (Masaki Matsushita) about 5 years ago
          
          
        
        
          
            Actions
          
          #5
        
      
      - Status changed from Open to Closed
 
Applied in changeset git|511fe23fa2bdf1f17faa91e0558be47b5bb62b2a.
Add resolve_timeout to TCPSocket [Feature #17134]
        
          
          Updated by Glass_saga (Masaki Matsushita) about 5 years ago
          
          
        
        
          
            Actions
          
          #6
        
      
      - Related to Feature #17187: Add connect_timeout to TCPSocket added
 
        
          
          Updated by naruse (Yui NARUSE) almost 5 years ago
          
          
        
        
          
            Actions
          
          #7
        
      
      - Status changed from Closed to Open
 - Target version deleted (
3.0) 
        
          
          Updated by naruse (Yui NARUSE) almost 5 years ago
          
          
        
        
          
            Actions
          
          #8
        
      
      - Related to Bug #17220: Rails Active Job integration test fails with Ruby 3.0.0 since 2038cc6cab6ceeffef3ec3a765c70ae684f829ed added
 
        
          
          Updated by naruse (Yui NARUSE) almost 5 years ago
          
          
        
        
          
            Actions
          
          #9
        
      
      - Related to Feature #16476: Socket.getaddrinfo cannot be interrupted by Timeout.timeout added
 
        
          
          Updated by hsbt (Hiroshi SHIBATA) almost 3 years ago
          
          
        
        
          
            Actions
          
          #10
        
      
      - Status changed from Open to Closed
 
Applied in changeset git|c8bfbbc25e4bc7c3ff59fae40471923a2793ba48.
Removed documentation for incomplete option about [Feature #17134]
        
          
          Updated by hsbt (Hiroshi SHIBATA) almost 3 years ago
          
          
        
        
          
            Actions
          
          #11
        
      
      - Status changed from Closed to Open
 
Actions