From: Albert Schlef Date: 2009-03-17T06:12:58+09:00 Subject: Re: does IO.read block? Robert Klemme wrote: > On 15.03.2009 23:02, Michael Malone wrote: >> Or does read_end.read block until it finds EOF? > > Yes, that's what it does: > http://www.ruby-doc.org/core/classes/IO.html#M002295 The docs shouldn't be read as a Bible. The docs may not be very precise. If IO#read is similar to C's read(), then it also returns when it had read all the available bytes. See "man 2 read". -- Posted via http://www.ruby-forum.com/.