From: rise Date: 2001-03-07T06:40:21+09:00 Subject: [ruby-talk:12185] Re: Nonblocking Read On Wed, 7 Mar 2001, Alex McHale wrote: > As I understand, if sysread does not block; once a user is connected, it > should either print the "Inside loop" and "Done with loop" over and over > *Or* bail immediately for lack of incoming data. It does neither. It > processes incoming data exactly (except for the amount of data being > dealt with, 1 byte versus 1 line) as though I still used readline. > > Am I totally missing something here? It seems unlikely, but you might be running into Ruby's internal buffering and thus want to change your sync setting. I'd have thought that sysread would bypass it as well. What you really need is Lincoln Stein's "Network Programming with Perl".sub(/Perl/i, 'Ruby'), or at least that's what I really need. Jonathan Conway