sinatra/sinatra — Issue #473: Streaming API does not stream in v3.0.2
Author: DeFirence
Created: 2012-02-27 02:10:49+00:00
State: open

## Issue
Response body is only sent to client when output.close is called (no streaming) when using Sinatra 3.0.2 with Thin.

## Test Case
```ruby
require 'thin'
require 'sinatra/base'

class GameserverAdmin < Sinatra::Base
set :root, File.dirname(__FILE__)

get '/' do
stream(:keep_open) do |output|
output << "Streaming live data...\n"
timer = EM.add_periodic_timer 0.5 do
print '.'
output << '.'
end
EM.add_timer 6 do
puts 'timed out!'
output << 'timed out!'
output.close
timer.cancel
end
end
end
end

GameserverAdmin.run! port: 18000
```