-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Milestone
Description
Hi,
with the following script:
require 'socket'
require 'json'
puts "v#{RUBY_VERSION}"
start = Time.now
s = TCPSocket.new 'localhost', 1234
s.write({ address: "some-bus-address", payload: { foo: "bar-#{i}" } }.to_json)
s.shutdown(:RDWR)
puts "#{i} Done in %.5fs" % (Time.now - start).to_fI get the following error:
v1.9.3
TypeError: can't convert Symbol into Integer
shutdown at org/jruby/ext/socket/RubyBasicSocket.java:379
(root) at client.rb:14
According to http://www.ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/BasicSocket.html#method-i-shutdown the argument for shutdown can be a number, symbol or a string. This changed since 1.8.x
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels