Class: Socket

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

Class Method Summary collapse

Class Method Details

.gethostnameObject



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

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

.orig_gethostnameObject

Bugfix for jruby #2558



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

alias_method :orig_gethostname, :gethostname