Telethon/telethon/network
Lonami Exo 863d2e8368 Make confirm_received a flag, avoid race conditions, fix bg RPCError
There was a race condition between TelegramBareClient.invoke
receiving part and MtProtoSender._handle_rpc_result actually
reading the result after setting request.confirmed = True.

The .confirmed is now a threading.Event to avoid the sleep(0.1).

RPC errors have been moved inside the request so they're not
raised on a background thread anymore.
2017-09-02 20:41:00 +02:00
..
__init__.py Create a centralized Connection class, replaces TcpTransport (#112) 2017-08-28 21:23:31 +02:00
authenticator.py Set a known buffer size if possible on BinaryWriter()s 2017-08-29 20:44:51 +02:00
connection.py Remove unused TcpClien.read(timeout=...) param, change other accessors 2017-09-02 19:33:42 +02:00
mtproto_plain_sender.py Set a known buffer size if possible on BinaryWriter()s 2017-08-29 20:44:51 +02:00
mtproto_sender.py Make confirm_received a flag, avoid race conditions, fix bg RPCError 2017-09-02 20:41:00 +02:00