开发者

What does rails do if a socket closes during my request processing?

开发者 https://www.devze.com 2023-03-17 15:15 出处:网络
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),

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...

0

精彩评论

暂无评论...
验证码 换一张
取 消