最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

nginx - Why does Gunicorn return a response after a long-running task, even though no timeout is set? - Stack Overflow

programmeradmin3浏览0评论

I am running a web application with Gunicorn, and I have noticed something strange. When I run tasks that take much longer than the default timeout (30 seconds), the tasks still seem to complete successfully, and the client receives a response.

I have not set a timeout value explicitly using the --timeout option when starting Gunicorn, so I expected the default 30-second timeout to kick in for long-running tasks, causing them to be terminated early with a timeout error. However, I am observing that tasks that take much longer than 30 seconds still finish, and the client receives the response correctly.

Fyi, Nginx timeout is set to a higher value(1 hour) for some reason.

Can someone explain why this is happening? Is there something else I might be missing or another configuration that could be affecting the timeout behavior?

Thank you in advance!

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论