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
14 @client.write(@io.read_nonblock(16384, RBUF))
26 @io.close unless @io.closed?