mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
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:
parent
7043a055f9
commit
bbf11a97e4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue