From bbf11a97e4728ca41ecb7c34117ec407de4988ec Mon Sep 17 00:00:00 2001 From: Cecylia Bocovich Date: Thu, 7 May 2020 09:40:49 -0400 Subject: [PATCH] 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 )