thin: waiting for n connection to close while trying to stop server

泄露秘密 提交于 2020-01-02 23:10:48

问题


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

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.

Please help


回答1:


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



来源:https://stackoverflow.com/questions/22006268/thin-waiting-for-n-connection-to-close-while-trying-to-stop-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!