Sha256: 5d53977f9074788908200ff9eb1e6c29c6efb604dd1c0d05b1b479782cfb278a

Contents?: true

Size: 851 Bytes

Versions: 8

Compression:

Stored size: 851 Bytes

Contents

require "resolv"

# ref: https://github.com/logstash-plugins/logstash-filter-dns/issues/40
#
# JRuby 9k versions prior to 9.1.16.0 have a bug which crashes IP address
# resolution after 64k unique IP addresses resolutions.
#
# Note that the oldest JRuby version in LS 6 is 9.1.13.0 and
# JRuby 1.7.25 and 1.7.27 (the 2 versions used across LS 5) are not affected by this bug.

# make sure we abort if a known correct JRuby version is installed 
# to avoid having an unnecessary legacy patch being applied in the future.

# The code below is copied from JRuby 9.1.16.0 resolv.rb:
# https://github.com/jruby/jruby/blob/9.1.16.0/lib/ruby/stdlib/resolv.rb#L775-L784
#
# JRuby is Copyright (c) 2007-2017 The JRuby project, and is released
# under a tri EPL/GPL/LGPL license.
# Full license available at https://github.com/jruby/jruby/blob/9.1.16.0/COPYING

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
logstash-core-6.7.2-java lib/logstash/patches/resolv.rb
logstash-core-7.0.1-java lib/logstash/patches/resolv.rb
logstash-core-7.0.0-java lib/logstash/patches/resolv.rb
logstash-core-6.7.1-java lib/logstash/patches/resolv.rb
logstash-core-7.0.0.rc2-java lib/logstash/patches/resolv.rb
logstash-core-7.0.0.rc1-java lib/logstash/patches/resolv.rb
logstash-core-6.7.0-java lib/logstash/patches/resolv.rb
logstash-core-7.0.0.beta1-java lib/logstash/patches/resolv.rb