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

Method close

gunicorn/workers/gthread.py:123–128  ·  view source on GitHub ↗
(self, graceful=False)

Source from the content-addressed store, hash-verified

121 sel.close()
122
123 def close(self, graceful=False):
124 if graceful:
125 self.sock.setblocking(True)
126 util.close_graceful(self.sock)
127 else:
128 util.close(self.sock)
129
130
131class PollableMethodQueue:

Callers 15

test_tconn_closeMethod · 0.95
_shutdownMethod · 0.45
_cleanupMethod · 0.45
handleMethod · 0.45
handle_requestMethod · 0.45
wait_for_dataMethod · 0.45
closeMethod · 0.45
murder_keepalivedMethod · 0.45
murder_pendingMethod · 0.45
runMethod · 0.45
finish_requestMethod · 0.45

Calls 1

setblockingMethod · 0.45

Tested by 2

test_tconn_closeMethod · 0.76