mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 02:49:12 +08:00
fix(DX): Print traceback of timed out requests (#6)
This commit is contained in:
parent
b9a8570039
commit
72c1e495d8
@ -12,6 +12,7 @@
|
||||
|
||||
from concurrent import futures
|
||||
import errno
|
||||
import faulthandler
|
||||
import os
|
||||
import selectors
|
||||
import socket
|
||||
@ -253,6 +254,7 @@ class ThreadWorker(base.Worker):
|
||||
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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user