Project

General

Profile

Feature #5100

allow configurable timeouts in resolv.rb

Added by normalperson (Eric Wong) about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:38533]

Description

Currently the resolv.rb timeouts are hard-coded and too high for some
users. It would be nice to have an easy way of timing out DNS requests without
resorting to the innefficient and potentially dangerous "timeout" library.

0001-lib-resolv.rb-Resolv-DNS-implement-configurable-time.patch (3.32 KB) 0001-lib-resolv.rb-Resolv-DNS-implement-configurable-time.patch RFC/PATCH for Resolv::DNS#timeouts= method normalperson (Eric Wong), 07/27/2011 08:45 AM

Associated revisions

Revision 33504
Added by akr (Akira Tanaka) almost 6 years ago

  • lib/resolv.rb: make timeout configurable for DNS query. patch by Eric Wong. [Feature #5100]

Revision 33504
Added by akr (Akira Tanaka) almost 6 years ago

  • lib/resolv.rb: make timeout configurable for DNS query. patch by Eric Wong. [Feature #5100]

Revision 33504
Added by akr (Akira Tanaka) almost 6 years ago

  • lib/resolv.rb: make timeout configurable for DNS query. patch by Eric Wong. [Feature #5100]

Revision 33504
Added by akr (Akira Tanaka) almost 6 years ago

  • lib/resolv.rb: make timeout configurable for DNS query. patch by Eric Wong. [Feature #5100]

History

#1 Updated by normalperson (Eric Wong) about 6 years ago

I've added a timeouts= instance method to Resolv::DNS. I'm unsure about
the API, but it should be usable (test case included).

Also pullable via git:
git pull git://bogomips.org/ruby resolv-timeout

#2 [ruby-core:38920] Updated by akr (Akira Tanaka) about 6 years ago

  • Assignee set to akr (Akira Tanaka)

#3 Updated by akr (Akira Tanaka) almost 6 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r33504.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/resolv.rb: make timeout configurable for DNS query. patch by Eric Wong. [Feature #5100]

Also available in: Atom PDF