Support custom event loops

This commit is contained in:
Lonami Exo
2018-06-14 19:35:12 +02:00
parent 908dfa148b
commit 0f14f3b16a
11 changed files with 48 additions and 40 deletions

View File

@@ -14,9 +14,6 @@ class ConnectionTcpAbridged(ConnectionTcpFull):
await self.conn.write(b'\xef')
return result
def clone(self):
return ConnectionTcpAbridged(self._proxy, self._timeout)
async def recv(self):
length = struct.unpack('<B', await self.read(1))[0]
if length >= 127: