ruby-dns / net-dns

Net::DNS is a DNS library written in Ruby.
http://net-dns.rubyforge.org
Other
165 stars 42 forks source link

uninitialized constant Net::DNS::Resolver::TimeoutError #84

Closed ujinius closed 9 months ago

ujinius commented 1 year ago

when timeout is happening I got:

NameError (uninitialized constant Net::DNS::Resolver::TimeoutError)

It can be reproduced simply:

irb(main):023:0> Net::DNS::Resolver.new({ retry_number: 3, udp_timeout: 0.0001 }).search("8.8.4.4".reverse, Net::DNS::PTR)
Traceback (most recent call last):
        1: from (irb):23
NameError (uninitialized constant Net::DNS::Resolver::TimeoutError)
irb(main):024:0> 
ujinius commented 1 year ago

it seems like this issue will be solved when this PR will be applied - https://github.com/bluemonk/net-dns/pull/83

akahn commented 1 year ago

Looks like the above has been merged. @bluemonk, would it be possible to cut a new gem release with this fix? Many thanks!

akahn commented 1 year ago

@ujinius what version of Ruby are you on?

ujinius commented 1 year ago

@ujinius what version of Ruby are you on?

@akahn 3.1.4 now

weppos commented 9 months ago

Fixed by https://github.com/bluemonk/net-dns/pull/83

weppos commented 9 months ago

Looks like the above has been merged. @bluemonk, would it be possible to cut a new gem release with this fix? Many thanks!

Published 0.20.0 https://rubygems.org/gems/net-dns/versions/0.20.0