From: Carlos Date: 2003-05-07T20:50:54+09:00 Subject: Re: disable buffering on sockets > 3.times do > sleep(1) > sock.send("hello, nice to see you", 0) > end > -- > > the other socket buffers the data and so socket.read does > not work. > > I'm using now socket.gets and send the following string > ``hello, nice to see you\n幹 - this works. > > If I send the the string without a linefeed char, the buffer > is retrieved to the script on socket.close. Probably gets is waiting for a linefeed to return the data. See ri IO.gets