MCPcopy
hub / github.com/benoitc/gunicorn / close_dirty_client

Function close_dirty_client

gunicorn/dirty/client.py:740–745  ·  view source on GitHub ↗

Close the thread-local client (call on worker exit).

()

Source from the content-addressed store, hash-verified

738
739
740def close_dirty_client():
741 """Close the thread-local client (call on worker exit)."""
742 client = getattr(_thread_local, 'dirty_client', None)
743 if client is not None:
744 client.close()
745 _thread_local.dirty_client = None
746
747
748async def close_dirty_client_async():

Calls 1

closeMethod · 0.45