1 # -*- encoding: binary -*-
3 module Rainbows::EventMachine::ResponsePipe
4 # garbage avoidance, EM always uses this in a single thread,
5 # so a single buffer for all clients will work safely
6 RBUF = Rainbows::EvCore::RBUF
13 case data = Kgio.tryread(@io, 16384, RBUF)
25 @io.close unless @io.closed?