mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Fix Connection abstraction leak
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user