Fix Connection abstraction leak

This commit is contained in:
Lonami Exo
2019-02-21 10:41:33 +01:00
parent 96270bdc18
commit 6de7329ce7
5 changed files with 19 additions and 13 deletions

View File

@@ -9,10 +9,8 @@ class ConnectionTcpAbridged(Connection):
only require 1 byte if the packet length is less than
508 bytes (127 << 2, which is very common).
"""
async def connect(self, timeout=None, ssl=None):
await super().connect(timeout=timeout, ssl=ssl)
def _init_conn(self):
self._writer.write(b'\xef')
await self._writer.drain()
def _write(self, data):
"""