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

Method _shutdown

gunicorn/ctl/server.py:173–176  ·  view source on GitHub ↗

Shutdown server (called from event loop thread).

(self)

Source from the content-addressed store, hash-verified

171 self._thread.start()
172
173 def _shutdown(self):
174 """Shutdown server (called from event loop thread)."""
175 if self._server:
176 self._server.close()
177
178 def _run_loop(self):
179 """Run the asyncio event loop in background thread."""

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected