From: "Borna N." Date: 2011-03-17T06:03:19+09:00 Subject: TCPSocket, send always transmit an even length message Hello all :) Just a quick and obscure bug report Console 1: $ irb > require 'socket' => true > s = TCPSocket.open('localhost', 2000) => # > s.send('ab', 2) => 2 > s.send('cde', 3) => 3 Console 2: $ nc -l 2000 abcd Write seems to work OK and puts too, but I could swear I had the same issue with puts on another Ubuntu box with same specs and ruby 1.8.7. I'm using Ubuntu 10.10, 2.6.35-27 kernel and ruby 1.9.2-p180 and ruby 1.8.7. -- Posted via http://www.ruby-forum.com/.