File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Release Notes
22
3+ ## v1.73.1
4+ * fix(caa): add support for issuevmc (#214 ) - thanks Mark McDonnell!
5+
36## v1.73.0
47
58* Ruby 3.4 updates - thanks @zarqman !
Original file line number Diff line number Diff line change 1+ require "dnsruby"
2+ Dnsruby ::TheLog . level = Logger ::DEBUG
3+
4+ def testme
5+ domain1 = "example.com"
6+ domain2 = "example.net"
7+
8+ start_time = Time . now
9+ resolver = Dnsruby ::Resolver . new
10+ resolver . query ( domain1 )
11+ puts "First query time: #{ Time . now - start_time } seconds"
12+
13+ start_time = Time . now
14+ resolver = Dnsruby ::Resolver . new
15+ resolver . query ( domain2 )
16+ puts "Second query time: #{ Time . now - start_time } seconds"
17+ end
18+
19+ testme
20+ testme
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env ruby
2+
3+ # frozen_string_literal: true
4+
5+ require 'dnsruby'
6+ require 'thread'
7+
8+ #Dnsruby.log.level = Logger::DEBUG
9+
10+ # speed up the repro
11+ NFILES = 30
12+ nfiles , _ = Process . getrlimit ( Process ::RLIMIT_NOFILE )
13+ Process . setrlimit ( Process ::RLIMIT_NOFILE , NFILES ) if nfiles > NFILES
14+
15+ NAMESERVERS = [ "192.31.80.30" ]
16+
17+ Thread . new {
18+ res = Dnsruby ::Resolver . new ( nameserver : NAMESERVERS , do_caching : false , query_timeout : 5 )
19+ loop do
20+ begin
21+ res . query ( "blahblahblah.com.edgekey.net" , "CNAME" )
22+ rescue Dnsruby ::ResolvError
23+ end
24+ sleep 0.2
25+ end
26+ }
27+
28+ loop do
29+ # system("ls -l /proc/#{Process.pid}/fd/")
30+ system ( "lsof -p #{ Process . pid } | wc -l" )
31+ File . open ( "/" ) { |_ | }
32+ sleep 1
33+ end
Original file line number Diff line number Diff line change 11module Dnsruby
2- VERSION = '1.73.0 '
2+ VERSION = '1.73.1 '
33end
You can’t perform that action at this time.
0 commit comments