1 # -*- encoding: binary -*-
4 class Rainbows::Coolio::Master < Coolio::IOWatcher
7 @reader, @writer = Kgio::Pipe.new
10 @wbuf, @rbuf = "\0", "\0"
15 @writer.kgio_trywrite(@wbuf)
19 if String === @reader.kgio_tryread(1, @rbuf)
20 client, response = @queue.pop
21 client.response_write(response)