We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8690de8 commit 0a31599Copy full SHA for 0a31599
pyrogram/session/session.py
@@ -45,7 +45,7 @@ def __init__(self):
45
46
47
class Session:
48
- START_TIMEOUT = 2
+ START_TIMEOUT = 5
49
WAIT_TIMEOUT = 15
50
SLEEP_THRESHOLD = 10
51
MAX_RETRIES = 10
@@ -229,7 +229,7 @@ async def handle_packet(self, packet):
229
raise SecurityCheckMismatch("The msg_id belongs to over 300 seconds in the past. "
230
"Most likely the client time has to be synchronized.")
231
except SecurityCheckMismatch as e:
232
- log.info("Discarding packet: %s", e)
+ log.warning("Discarding packet: %s", e)
233
await self.connection.close()
234
return
235
else:
0 commit comments