Requests Hang Indefinitely (Hours+) Until Manual Gunicorn Restart, pre_requestLogs Not Printed Gunicorn 20.0.4 #3506
Replies: 2 comments 1 reply
-
|
Do you reproduce it with latest version of Gunicorn? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Yes. Latest version of gthread worker has considerablyben improved since
the version 24.
Le ven. 13 févr. 2026 à 09:08, wl779754345-netizen ***@***.***>
a écrit :
… We have not updated the Gunicorn version. Our leader hopes to identify the
root cause and fix it, so we have spent considerable time adjusting
parameters, implementing asynchronous logging, optimizing request latency,
and so on. Currently, this issue occurs once every few weeks. Do you
recommend upgrading the version?
—
Reply to this email directly, view it on GitHub
<#3506 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADRIWUJENM5HNJQIIVMI34LWA7HAVCNFSM6AAAAACU74HGFWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNZZGI3DINQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The requester sends a request but never receives a response packet. If the requester does not set a timeout, the request remains stuck and unresponsive for several hours or even longer, until the Gunicorn service is manually restarted (the restart likely breaks the connection, causing the client to finally receive an exception).
This issue is not reproducible on demand. When a request hangs without a response, the service logs indicate that other requests are being processed normally both immediately before and after the problematic event.
A pre_requesthook implementation was added for logging, but no log entries from it are printed when this hang occurs.
this is a Gunicorn Django service with no proxy involved; the requester connects directly to the Gunicorn service. What could be the possible cause?
it my pre_request hook:
it is my configuration
Beta Was this translation helpful? Give feedback.
All reactions