pyrofork/docs/source/faq/socket-send-oserror-timeouterror-connection-lost-reset.rst
wulan17 9c94dac120
Revert "PyroFork: Rebrand docs"
This reverts commit bec44280a4.

Signed-off-by: wulan17 <wulan17@nusantararom.org>
2023-03-20 09:31:54 +07:00

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.