Hi,
In message "[ruby-talk:18664] Re: Non-blocking socket use in threads?"
on 01/07/28, Steven Grady <grady / xcf.berkeley.edu> writes:
|Unfortunately (as I reported in Bug 112 at the Ruby Bug Tracking
|System), IO#eof is still blocking, e.g.:
That's different issue. Unfortunately, IO#eof does block the current
thread, it does not block other threads. I'm still not sure if I
should change (or how I should change) the IO#eof semantic, that
inherited from Perl.
% perl -e 'open(F, "sleep 2|"); print "a\n"; eof(F); print "b\n"'
matz.