MCPcopy Index your code
hub / github.com/python/cpython / accept_connection

Method accept_connection

Lib/multiprocessing/managers.py:419–425  ·  view source on GitHub ↗

Spawn a new thread to serve this connection

(self, c, name)

Source from the content-addressed store, hash-verified

417 return tuple(self.id_to_obj[token.id][1])
418
419 def accept_connection(self, c, name):
420 '''
421 Spawn a new thread to serve this connection
422 '''
423 threading.current_thread().name = name
424 c.send(('#RETURN', None))
425 self.serve_client(c)
426
427 def incref(self, c, ident):
428 with self.mutex:

Callers

nothing calls this directly

Calls 2

serve_clientMethod · 0.95
sendMethod · 0.45

Tested by

no test coverage detected