[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] Reduce SnowflakeTimeout to 20 seconds
commit bbf11a97e4728ca41ecb7c34117ec407de4988ec
Author: Cecylia Bocovich <cohosh@xxxxxxxxxxxxxx>
Date: Thu May 7 09:40:49 2020 -0400
Reduce SnowflakeTimeout to 20 seconds
The underlying smux layer sends a keep-alive ping every 10 seconds. This
modification will allow for one dropped/delayed ping before discarding
the snowflake
---
client/lib/snowflake.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/lib/snowflake.go b/client/lib/snowflake.go
index 91f7ecb..b355c3e 100644
--- a/client/lib/snowflake.go
+++ b/client/lib/snowflake.go
@@ -16,7 +16,7 @@ import (
const (
ReconnectTimeout = 10 * time.Second
- SnowflakeTimeout = 30 * time.Second
+ SnowflakeTimeout = 20 * time.Second
// How long to wait for the OnOpen callback on a DataChannel.
DataChannelTimeout = 10 * time.Second
)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits