Urabe Shyouhei <shyouhei / ruby-lang.org> wrote:
> (08/02/2011 08:14 AM), Eric Wong wrote:
> > Urabe Shyouhei <shyouhei / ruby-lang.org> wrote:
> >> So when you  do a read loop,  nothing bothers you, as long  as you use
> >> readpartial.
> > 
> > That use of select + readpartial is unsafe.
> 
> Unsafe how?  readpatial works even without no data on a buffer.

readpartial will block if there's no data readable, potentially freezing
the whole process.

-- 
Eric Wong