Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5146

Show
Ignore:
Timestamp:
09/18/06 23:52:03 (4 years ago)
Author:
bitsweat
Message:

Rescue Errno::ECONNRESET to handle an unexpectedly closed socket connection. Improves SCGI reliability. Closes #3368, closes #6226.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r5131 r5146  
    11*SVN* 
     2 
     3* Rescue Errno::ECONNRESET to handle an unexpectedly closed socket connection. Improves SCGI reliability.  #3368, #6226 [sdsykes, fhanshaw@vesaria.com] 
    24 
    35* Added that respond_to blocks will automatically set the content type to be the same as is requested [DHH]. Examples: 
  • trunk/actionpack/lib/action_controller/cgi_process.rb

    r4866 r5146  
    174174      output.binmode      if output.respond_to?(:binmode) 
    175175      output.sync = false if output.respond_to?(:sync=) 
    176        
     176 
    177177      begin 
    178178        output.write(@cgi.header(@headers)) 
     
    190190 
    191191        output.flush if output.respond_to?(:flush) 
    192       rescue Errno::EPIPE => e 
    193         # lost connection to the FCGI process -- ignore the output, then 
     192      rescue Errno::EPIPE, Errno::ECONNRESET 
     193        # lost connection to parent process, ignore output 
    194194      end 
    195195    end