服务200 OK后,Rails崩溃

时间:2016-11-30 23:48:59

标签: ruby-on-rails

=> Booting Thin
=> Rails 4.1.6 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Thin web server (v1.7.0 codename Dunder Mifflin)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop
Started GET "/admin/performance" for 127.0.0.1 at 2016-11-30 18:39:36 -0500
Processing by Admin::ReportingController#performance as HTML
  ... Rendering omitted for brevity and sanity
Completed 200 OK in 15768ms (Views: 4258.8ms | ActiveRecord: 521.3ms)

然后什么都没有。浏览器仍然显示一个打开的连接(什么都不渲染),我的Rails服务器崩溃了。任何其他视图都不会产生任何输出。如果我强制终止服务器(使用kill -9 pid,因为常规Ctrl-C或kill pid不起作用)并重新启动它,除了这一个特定的操作外,一切正常。

有没有人见过这样的东西?有解决方案吗?它实际上在使用Unicorn的制作中工作,所以我认为它可能是Thin的一个问题......但为什么它只是一个动作的问题呢?

编辑:更改为WEBrick并不能解决这个问题,因此虽然Ctrl-C可以与WEBrick一起使用,但它不是Thin的问题

编辑2:更新机架超时允许服务器不挂起并取消请求

0 个答案:

没有答案