Forum: Ruby on Rails flush buffer in rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
05337aed68267daec2996e5ca732d476?d=identicon&s=25 Akbar Home (rinda)
on 2007-01-02 11:45
    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.
E52a0154583a624a9cd24dc5a95c912e?d=identicon&s=25 Tony Garcia (tony23)
on 2008-02-04 22:34
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?
3d333b0012928f3dd5a6861cb09ad683?d=identicon&s=25 Kris Leech (krisleech)
on 2009-09-16 12:49
Looks like this is only possible when using FastCGI.

http://markmail.org/message/3g7yvrq2oum6a5h4#query...
This topic is locked and can not be replied to.