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

Method accept

gunicorn/workers/sync.py:26–30  ·  view source on GitHub ↗
(self, listener)

Source from the content-addressed store, hash-verified

24class SyncWorker(base.Worker):
25
26 def accept(self, listener):
27 client, addr = listener.accept()
28 client.setblocking(1)
29 util.close_on_exec(client)
30 self.handle(listener, client, addr)
31
32 def wait(self, timeout):
33 try:

Callers 15

run_for_oneMethod · 0.95
run_for_multipleMethod · 0.95
test_accept_successMethod · 0.45
test_accept_eagainMethod · 0.45
server_handlerMethod · 0.45
fastapi_websocket_echoFunction · 0.45
ws_echoFunction · 0.45
ws_echo_binaryFunction · 0.45
ws_scope_handlerFunction · 0.45

Calls 3

handleMethod · 0.95
setblockingMethod · 0.45
close_on_execMethod · 0.45

Tested by 6

test_accept_successMethod · 0.36
test_accept_eagainMethod · 0.36
server_handlerMethod · 0.36
server_handlerMethod · 0.36