-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #1965: About gunicorn [CRITICAL] Worker Timeout #1967
Conversation
Thanks! One small change and it should be great. |
It would also be great to know if this solves your original issue! |
@skytoup does it solve your issue? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the fchmod stuff still needs to be fixed. Can you change it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I approve too quickly. 😅
Still need to change self._tmp.name
back to self._tmp.fileno()
.
@skytoup we are doing a new release this week and it would be useful to include such change now, have you any questions about the proposed changes? |
I did the modified time test in the test environment and found no problem temporarily. However, I observed the previous timeout error on my server and found that timeout still occurs every day. Timeout may be caused by other reasons every day, but the reason has not been found yet. I have changed a machine to deploy the server. Timeout does not occur every day. It may be caused by other factors such as the machine environment. |
I found the reason. Disk error due to system backup and affected gunicorn to modify the file information. |
Do we still want to merge this PR? It makes sense if it works and is portable. |
@tilgovi the idea is still interresting. Provided we replace |
@benoitc |
Co-Authored-By: skytoup <[email protected]>
Hi, I am facing the same issue, any plans when/if this will be merged? We are running a service during boot and time sync is causing premature/false timeouts. |
I can confirm that the fix works on 18.04, the test case which was failing always passed. It would be good to get this merged. |
@benoitc can you take another look at this please? I think it's correct. The change to using |
Ran into this issue on an embedded device that doesn't have a RTC so the time is always wrong on a start-up and jumps when it's connected to the Internet. Applied this patch and the issue seems resolved. Any updates on getting this merged, would love to see it incorporated? |
Bumping this, would be great to get this merged to finally resolve this issue. |
Superseded by #3095. |
Actually, #3095 does not use the monotonic trick. Feel free to reopen and rebase and we can merge this to fix the other issues. |
I'll just merge, resolving conflicts. This looks goood. |
Fixes #1965
Refer to your suggestions, use
time.monotonic
andos.utime
to fix system time changes cause the woker timeout