Class: Socket

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/patches/bugfix_jruby_2558.rb

Class Method Summary collapse

Class Method Details

.gethostnameObject



21
22
23
# File 'lib/logstash/patches/bugfix_jruby_2558.rb', line 21

def gethostname
  return orig_gethostname.force_encoding(Encoding::UTF_8)
end

.orig_gethostnameObject

Bugfix for jruby #2558



20
# File 'lib/logstash/patches/bugfix_jruby_2558.rb', line 20

alias_method :orig_gethostname, :gethostname