allow configurable timeouts in resolv.rb
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.
- lib/resolv.rb: make timeout configurable for DNS query. patch by Eric Wong. [ruby-core:38533] [Feature #5100]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Updated by normalperson (Eric Wong) over 7 years ago
- File 0001-lib-resolv.rb-Resolv-DNS-implement-configurable-time.patch 0001-lib-resolv.rb-Resolv-DNS-implement-configurable-time.patch added
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
Updated by akr (Akira Tanaka) over 7 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100