1 # -*- encoding: binary -*-
4 class Rainbows::Epoll::ResponsePipe
7 RBUF = Rainbows::EvCore::RBUF
10 def initialize(io, client, body)
11 @io, @client, @body = io, client, body
15 return close if @client.closed?
16 @client.stream_pipe(self) or @client.on_deferred_write_complete
19 @client.handle_error(e)
25 @body.respond_to?(:close) and @body.close
30 Kgio.tryread(@io, 16384, RBUF)