Let all connection modes implement the new Connection

This commit is contained in:
Lonami Exo
2018-09-27 19:22:35 +02:00
parent 096424ea78
commit 2fd51b8582
7 changed files with 95 additions and 202 deletions

View File

@@ -69,6 +69,7 @@ class Connection(abc.ABC):
self._send(await self._send_queue.get())
await self._writer.drain()
# TODO Handle IncompleteReadError and InvalidChecksumError
async def _recv_loop(self):
"""
This loop is constantly putting items on the queue as they're read.