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

Method enqueue_req

gunicorn/workers/gthread.py:275–279  ·  view source on GitHub ↗

Submit connection to thread pool for processing.

(self, conn)

Source from the content-addressed store, hash-verified

273 self._accepting = enabled
274
275 def enqueue_req(self, conn):
276 """Submit connection to thread pool for processing."""
277 fs = self.tpool.submit(self.handle, conn)
278 fs.add_done_callback(
279 lambda fut: self.method_queue.defer(self.finish_request, conn, fut))
280
281 def accept(self, listener):
282 """Accept a new connection from a listener socket."""

Callers 4

acceptMethod · 0.95

Calls 1

deferMethod · 0.80

Tested by 1