Skip to content

Commit

Permalink
fix(DX): Print traceback of timed out requests (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush authored Feb 7, 2025
1 parent b9a8570 commit 72c1e49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gunicorn/workers/gthread.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from concurrent import futures
import errno
import faulthandler
import os
import selectors
import socket
Expand Down Expand Up @@ -253,6 +254,7 @@ def run(self):
if current_time > fut._request_timeout:
self.alive = False
self.log.error("A request timed out. Exiting.")
faulthandler.dump_traceback()

self.tpool.shutdown(False)
self.poller.close()
Expand Down

0 comments on commit 72c1e49

Please sign in to comment.