dnsruby 1.33 → 1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -156,6 +156,8 @@ module Dnsruby
156
156
  rescue SelectWakeup
157
157
  # If SelectWakeup, then just restart this loop - the select call will be made with the new data
158
158
  next
159
+ rescue IOError # Don't worry if the socket was closed already
160
+ next
159
161
  end
160
162
  if (ready == nil)
161
163
  # proces the timeouts
@@ -267,7 +269,10 @@ module Dnsruby
267
269
  @@sockets.delete(socket) # @TODO@ Not if persistent!
268
270
  }
269
271
  Dnsruby.log.debug{"Closing socket #{socket}"}
272
+ begin
270
273
  socket.close # @TODO@ Not if persistent!
274
+ rescue IOError # Don't worry if the socket was closed already
275
+ end
271
276
  end
272
277
 
273
278
  def process_timeouts
@@ -382,9 +382,9 @@ module Dnsruby
382
382
  PRIVATEDNS = 253
383
383
  PRIVATEOID = 254
384
384
  update()
385
- # Referred to as Algoriths.DSA_NSEC3_SHA1
385
+ # Referred to as Algorithms.DSA_NSEC3_SHA1
386
386
  add_pair("DSA-NSEC3-SHA1", 6)
387
- # Referred to as Algoriths.RSASHA1_NSEC3_SHA1
387
+ # Referred to as Algorithms.RSASHA1_NSEC3_SHA1
388
388
  add_pair("RSASHA1-NSEC3-SHA1", 7)
389
389
  end
390
390
 
@@ -188,12 +188,11 @@ f4 00 31 04 64 6e 73 31 05 69 63 61 6e 6e 03 6f
188
188
  # print "section = #{section}, rrsets = #{rrsets.length}\n"
189
189
  end
190
190
  assert(packet.authority.rrsets.length == 1)
191
- assert(packet.question.rrsets.length == 1)
191
+ assert(packet.question().length == 1)
192
192
  assert(packet.answer.rrsets.length == 1)
193
193
  assert(packet.additional.rrsets.length == 0)
194
194
  assert(packet.authority.rrsets[0].length == 3)
195
195
  # assert(packet.additional.rrsets[0].length == 0)
196
- assert(packet.question.rrsets[0].length == 1)
197
196
  assert(packet.answer.rrsets[0].length == 1)
198
197
  end
199
198
 
@@ -36,8 +36,8 @@ class RrsetTest < Test::Unit::TestCase
36
36
  :original_ttl => 3600,
37
37
  :algorithm => Dnsruby::Algorithms::RSASHA1,
38
38
  :labels => 3,
39
- :expiration => Time.mktime(2003,03,22,17,31, 03),
40
- :inception => Time.mktime(2003,02,20,17,31,03),
39
+ :expiration => Time.mktime(2003,03,22,17,31, 03).to_i,
40
+ :inception => Time.mktime(2003,02,20,17,31,03).to_i,
41
41
  :key_tag => 2642
42
42
  })
43
43
  assert(!rrset.add(sig))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnsruby
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.33"
4
+ version: "1.34"
5
5
  platform: ruby
6
6
  authors:
7
7
  - AlexD
@@ -9,7 +9,7 @@ autorequire: dnsruby
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-10 00:00:00 +01:00
12
+ date: 2009-07-17 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15