What does rails do if a socket closes during my request processing?
In a ruby on rails application, if the socket to the HTTP client closes at some point during my request handler, what happens? Does my handler run to completion (and then the response is thrown away), or is it somehow stopped or interrupted?
I'm asking rather than trying because I dou开发者_C百科bt I can solidly reproduce nicely timed socket errors at all possible points in the processing.
with < 3.1 I think it just finishes the request, then fails. With 3.1 I'm not so sure...because it's supposed to optionally return content chunks...
精彩评论