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
This commit is contained in:
Cecylia Bocovich 2020-05-07 09:40:49 -04:00
parent 7043a055f9
commit bbf11a97e4

View file

@ -16,7 +16,7 @@ import (
const ( const (
ReconnectTimeout = 10 * time.Second ReconnectTimeout = 10 * time.Second
SnowflakeTimeout = 30 * time.Second SnowflakeTimeout = 20 * time.Second
// How long to wait for the OnOpen callback on a DataChannel. // How long to wait for the OnOpen callback on a DataChannel.
DataChannelTimeout = 10 * time.Second DataChannelTimeout = 10 * time.Second
) )