mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-13 06:15:45 +00:00
make default client handshake timeout random
This commit is contained in:
1 parent
294cb65738
commit
8a4bc77125
1 file changed
+1
-1
+1
-1
@@ -176,7 +176,7 @@ def init_config():
|
||||
conf_dict.setdefault("CLIENT_KEEPALIVE", 10*60)
|
||||
|
||||
# drop client after this timeout if the handshake fail
|
||||
conf_dict.setdefault("CLIENT_HANDSHAKE_TIMEOUT", 10)
|
||||
conf_dict.setdefault("CLIENT_HANDSHAKE_TIMEOUT", random.randrange(5, 15))
|
||||
|
||||
# if client doesn't confirm data for this number of seconds, it is dropped
|
||||
conf_dict.setdefault("CLIENT_ACK_TIMEOUT", 5*60)
|
||||
|
||||
Reference in new issue
Block a user