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

Non blocking requests #56

Open Hengjie opened 10 years ago

Hengjie commented 10 years ago

Hi, is it possible to change the resolver.rb file's udp query method to use recvfrom_nonblock instead of recvfrom? This should improve performance for cases where hundreds or thousands of queries are being sent. I'm suggesting this because UDP is stateless in nature and could benefit from such non blocking requests.

dentarg commented 8 years ago

https://github.com/justfalter/unbound-ruby might be useful for anyone looking for this