lib/bertrpc/action.rb in bertrpc-1.3.0 vs lib/bertrpc/action.rb in bertrpc-1.3.1
- old
+ new
@@ -17,10 +17,10 @@
end
#private
def write(sock, bert)
- sock.write([bert.length].pack("N"))
+ sock.write([bert.bytesize].pack("N"))
sock.write(bert)
end
def read(sock, len, timeout)
data, size = [], 0