From: Roger Pack Date: 2007-08-15T11:32:35+09:00 Subject: Re: TCPSocket Flushing Yeah try using socket.recv(1024) or what not. I don't know what read does--it might wait until it closes to it can read the entire thing 'once' --as stated typically read (with files) reads the entire file into one large string--not sure if it does so here, or tries to, as well, or not. Good luck. -Roger Belief is good. http://www.google.com/search?q=free+bible Douglas Wells wrote: > In article <18e16d93f4d0a9e65517e49c497bcfcd@ruby-forum.com>, > David -- writes: >> connection.write "one\n" >> while not sock.eof? >> print sock.read >> end > -- Posted via http://www.ruby-forum.com/.