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

Method handler

tests/ctl/test_protocol.py:212–217  ·  view source on GitHub ↗
(reader, writer)

Source from the content-addressed store, hash-verified

210 socket_path = os.path.join(tmpdir, "test.sock")
211
212 async def handler(reader, writer):
213 msg = await ControlProtocol.read_message_async(reader)
214 received.append(msg)
215 await ControlProtocol.write_message_async(writer, data)
216 writer.close()
217 await writer.wait_closed()
218
219 server = await asyncio.start_unix_server(handler, path=socket_path)
220

Callers 1

__call__Method · 0.80

Calls 4

read_message_asyncMethod · 0.45
write_message_asyncMethod · 0.45
closeMethod · 0.45
wait_closedMethod · 0.45

Tested by

no test coverage detected