MCPcopy Create free account
hub / github.com/rthalley/dnspython / run

Method run

tests/doq.py:74–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 return self.buffer.seen_end()
73
74 async def run(self):
75 try:
76 wire = await self.receive()
77 is_get = False
78 path: Optional[bytes]
79 for wire in self.connection.listener.server.handle_wire(
80 wire,
81 self.connection.peer,
82 self.connection.listener.socket.getsockname(),
83 self.connection.listener.connection_type,
84 ):
85 break
86 await self.send(wire, True)
87 except Exception:
88 if not self.seen_end():
89 self.connection.reset(self.stream_id)
90 finally:
91 self.connection.stream_done(self)
92
93
94class Connection:

Callers 12

utest.pyFile · 0.45
test_basic_ddr_asyncFunction · 0.45
test_basic_asyncioFunction · 0.45
test_basic_trioFunction · 0.45
test_asyncio_inbound_xfrFunction · 0.45
test_trio_inbound_xfrFunction · 0.45
ddr.pyFile · 0.45
async_dns.pyFile · 0.45
arunFunction · 0.45
amultirunFunction · 0.45
trunFunction · 0.45
tmultirunFunction · 0.45

Calls 7

receiveMethod · 0.95
sendMethod · 0.95
seen_endMethod · 0.95
handle_wireMethod · 0.80
stream_doneMethod · 0.80
getsocknameMethod · 0.45
resetMethod · 0.45

Tested by 5

test_basic_ddr_asyncFunction · 0.36
test_basic_asyncioFunction · 0.36
test_basic_trioFunction · 0.36
test_asyncio_inbound_xfrFunction · 0.36
test_trio_inbound_xfrFunction · 0.36