From d23d3bc360f591e6bd8bfe1fa757415d3a878be5 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Mon, 27 Jun 2005 09:35:09 +0000 Subject: Attempt to explicitly flush the output at the end of CgiProcess#out git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/cgi_process.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_controller/cgi_process.rb') diff --git a/actionpack/lib/action_controller/cgi_process.rb b/actionpack/lib/action_controller/cgi_process.rb index e4e86615c0..43a8a53b8b 100644 --- a/actionpack/lib/action_controller/cgi_process.rb +++ b/actionpack/lib/action_controller/cgi_process.rb @@ -139,6 +139,8 @@ module ActionController #:nodoc: else output.write(@body) end + + output.flush if output.respond_to?(:flush) rescue Errno::EPIPE => e # lost connection to the FCGI process -- ignore the output, then end -- cgit v1.2.3