Telethon/telethon/network
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
..
connection Cancel tasks on reconnect instead of awaiting them 2018-10-21 16:20:05 +02:00
__init__.py Re-export ConnectionHttp from the network package 2018-07-08 17:48:38 +02:00
authenticator.py Remove critical code from assert statements 2018-08-14 19:14:13 +02:00
mtprotoplainsender.py Detect arbitrary negative HTTP error codes 2018-10-12 19:47:40 +02:00
mtprotosender.py Cancel tasks on reconnect instead of awaiting them 2018-10-21 16:20:05 +02:00
mtprotostate.py Use new broken MessagePacker 2018-10-19 13:24:52 +02:00
requeststate.py Implement after_msg_id back 2018-10-19 16:53:50 +02:00