coolio+xepoll_thread*: use shutdown() for keepalive timeout
[rainbows.git] / t / t0016.rb
blob98c9a2e3540420a2cda8e36d20be82a0706c30c6
1 # -*- encoding: utf-8 -*-
2 module T0016
3   CHUNK = '©' * 1024 * 1024
4   BODY = (1..50).map { CHUNK }
5   HEADER = {
6     # BODY.inject(0) { |m,c| m += c.bytesize }.to_s,
7     'Content-Length' => '104857600',
8     'Content-Type' => 'text/plain',
9   }
11   def self.call(env)
12     [ 200, HEADER, BODY ]
13   end
14 end
15 $0 == __FILE__ and T0016::BODY.each { |x| $stdout.syswrite(x) }