Telethon/telethon/network/connection
Lonami Exo 7dece209a0 Cancel tasks on reconnect instead of awaiting them
This prevents us from locking forever on any task that doesn't
rely on cancellation tokens, in this case, Connection.recv()'s
_recv_queue.get() would never complete after the server closed
the connection.

Additionally, working with cancellation tokens in asyncio is
somewhat annoying to do.

Last but not least removing the Connection._disconnected future
avoids the need to use its state (if an exception was set it
should be retrieved) to prevent asyncio from complaining, which
it was before.
2018-10-21 16:20:05 +02:00
..
__init__.py Implement HTTP(S) mode (closes #112) (#883) 2018-07-08 17:45:49 +02:00
connection.py Cancel tasks on reconnect instead of awaiting them 2018-10-21 16:20:05 +02:00
http.py Add support for proxy again 2018-10-05 13:26:44 +02:00
tcpabridged.py Fix alternative connection modes 2018-10-05 13:26:44 +02:00
tcpfull.py Add support for proxy again 2018-10-05 13:26:44 +02:00
tcpintermediate.py Fix alternative connection modes 2018-10-05 13:26:44 +02:00
tcpobfuscated.py Fix alternative connection modes 2018-10-05 13:26:44 +02:00