MCPcopy
hub / github.com/buildbot/buildbot / pipe

Function pipe

master/buildbot/test/integration/worker/test_proxy.py:52–59  ·  view source on GitHub ↗
(reader, writer)

Source from the content-addressed store, hash-verified

50
51async def handle_client(local_reader, local_writer):
52 async def pipe(reader, writer):
53 try:
54 while not reader.at_eof():
55 writer.write(await reader.read(2048))
56 except ConnectionResetError:
57 pass
58 finally:
59 writer.close()
60
61 try:
62 request = await local_reader.read(2048)

Callers 1

handle_clientFunction · 0.85

Calls 3

closeMethod · 0.65
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected