薄:等待n连接关闭,同时试图阻止服务器服务器

2023-09-11 09:06:30 作者:xx最喜欢先生了

我已经把我的应用程序(Ruby on Rails的),这是在薄和nginx的运行(Ubuntu的)的Amazon EC2服务器上。 每当我停止我瘦的生产服务器,我得到这个消息等待n连接时(S)来完成,可能需要长达30秒, CTRL + C 停止

I have put my application (Ruby on Rails) on (Ubuntu) Amazon EC2 server which is running on thin and nginx. Whenever I stop my thin production server I am getting this message as "waiting for n connection(s) to finish,can take up to 30 sec, CTRL+C to stop"

下面所附的截屏.....

Below is the attached screenshot.....

这是什么意思?为什么它coming.I不得不等待很长的时间来连接到stop.I有薄版1.5.1。 而且,由于这是现场的环境,我们不希望网站往下走了太多的时间。

What does it mean and why is it coming.I had to wait for a long time for the connections to stop.I have Thin version 1.5.1. And since this is Live environment We don't want the website to go down for much time.

请帮忙

推荐答案

只要设定等待在thin.yml需要几秒钟!

Just set 'wait' to need seconds in thin.yml!