logstash-filter-dns 3.0.12 → 3.0.13

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.
@@ -33,6 +33,23 @@ if jruby_gem_version >= Gem::Version.new("9.1.13.0") && jruby_gem_version < Gem:
33
33
  end
34
34
  end
35
35
 
36
+ # ref: https://github.com/logstash-plugins/logstash-filter-dns/issues/51
37
+ #
38
+ # JRuby versions starting at 9.2.0.0 have a bug caused by an upstream Ruby stdlib resolv.rb bug.
39
+ # This bug is essentially the same as the previous above bug where there is a leak between the
40
+ # DNS.allocate_request_id/DNS.free_request_id.
41
+ # This fix is required because starting at JRuby 9.2.0.0 the resolv.rb code was updated from the
42
+ # upstream Ruby stdlib code and the previous patch cannot be applied. Also this fix is better than the previous one.
43
+ if jruby_gem_version >= Gem::Version.new("9.2.0.0")
44
+ # save verbose level and mute the "warning: already initialized constant"
45
+ warn_level = $VERBOSE
46
+ $VERBOSE = nil
47
+
48
+ require_relative "resolv_9270"
49
+
50
+ $VERBOSE = warn_level
51
+ end
52
+
36
53
  # JRuby 1.x ships with a Ruby stdlib that has a bug in its resolv implementation
37
54
  # in which it fails to correctly canonicalise unqualified or underqualified
38
55
  # domains (e.g., domain names with fewer than the configured ndots, which defaults
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-filter-dns'
4
- s.version = '3.0.12'
4
+ s.version = '3.0.13'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Performs a standard or reverse DNS lookup"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.12
4
+ version: 3.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-11 00:00:00.000000000 Z
11
+ date: 2019-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -74,6 +74,7 @@ files:
74
74
  - README.md
75
75
  - docs/index.asciidoc
76
76
  - lib/logstash/filters/dns.rb
77
+ - lib/logstash/filters/dns/resolv_9270.rb
77
78
  - lib/logstash/filters/dns/resolv_patch.rb
78
79
  - logstash-filter-dns.gemspec
79
80
  - spec/filters/dns_spec.rb