Question regarding Socket#read

Hi !

Look at this code :

socket = TCPSocket.open(host, port)
socket.read(1)
socket.read(1)
socket.read(1)
socket.close

Will these read calls trigger 3 TCP round trip or does Ruby have some
kind of buffering for receiving data ?

Thank you ! :slight_smile:

S茅bastien

路路路

--
Posted via http://www.ruby-forum.com/.