[tor-commits] [snowflake/master] Reduce SnowflakeTimeout to 20 seconds
cohosh at torproject.org
cohosh at torproject.org
Wed May 13 13:27:31 UTC 2020
commit bbf11a97e4728ca41ecb7c34117ec407de4988ec
Author: Cecylia Bocovich <cohosh at torproject.org>
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
)
More information about the tor-commits
mailing list