Changeset 829
- Timestamp:
- 03/03/05 23:12:57 (4 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/cgi_process.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r828 r829 1 1 *SVN* 2 3 * Fixed that broken pipe errors (clients disconnecting in mid-request) could bring down a fcgi process 2 4 3 5 * Added the original exception message to session recall errors (so you can see which class wasnt required) trunk/actionpack/lib/action_controller/cgi_process.rb
r828 r829 121 121 $stdout.binmode if $stdout.respond_to?(:binmode) 122 122 $stdout.sync = false 123 print @cgi.header(@headers) 123 124 begin 125 print @cgi.header(@headers) 124 126 125 if @cgi.send(:env_table)['REQUEST_METHOD'] == 'HEAD' 126 return 127 elsif @body.respond_to?(:call) 128 @body.call(self) 129 else 130 print @body 127 if @cgi.send(:env_table)['REQUEST_METHOD'] == 'HEAD' 128 return 129 elsif @body.respond_to?(:call) 130 @body.call(self) 131 else 132 print @body 133 end 134 rescue Errno::EPIPE => e 135 # lost connection to the FCGI process -- ignore the output, then 131 136 end 132 137 end