mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 03:54:51 +00:00
12 lines
535 B
ReStructuredText
12 lines
535 B
ReStructuredText
socket.send(), OSError(), TimeoutError(), Connection lost/reset
|
|
===============================================================
|
|
|
|
If you get any of these errors chances are you ended up with a slow or inconsistent network connection.
|
|
Another reason could be because you are blocking the event loop for too long.
|
|
|
|
You can consider the following:
|
|
|
|
- Use Pyrogram asynchronously in its intended way.
|
|
- Use shorter non-asynchronous processing loops.
|
|
- Use ``asyncio.sleep()`` instead of ``time.sleep()``.
|
|
- Use a stable network connection.
|