Flush buffer in rails

render :text => lambda { |resp, out|
  out.puts 'start'
  out.flush
  2.times do
    out.puts '.'
    out.flush
    sleep 1
  end
  out.puts 'done'
}

Hi, using that code (find in archive), I am only able to print the whole
chunk not step by step. Any idea? I use mongrel and lighttpd. Both does
not work if webserver influence this.

I know I’m reviving an old post, but I’m facing the same problem, and I
can’t find ANYTHING that helps. I’ve been searching for a couple days at
least - no luck. Does anyone have any insight or knowledge on this?

Looks like this is only possible when using FastCGI.

http://markmail.org/message/3g7yvrq2oum6a5h4#query:+page:1+mid:yhiw6xqawegwokfg+state:results