mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Reduce the smux KeepAliveTimeout on the server from 10 to 4 minutes.
To save memory, we want to more aggressively close stale connections. https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40175
This commit is contained in:
parent
12e8de8b24
commit
2f55581098
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ func (l *SnowflakeListener) acceptStreams(conn *kcp.UDPSession) error {
|
|||
|
||||
smuxConfig := smux.DefaultConfig()
|
||||
smuxConfig.Version = 2
|
||||
smuxConfig.KeepAliveTimeout = 10 * time.Minute
|
||||
smuxConfig.KeepAliveTimeout = 4 * time.Minute
|
||||
smuxConfig.MaxStreamBuffer = StreamSize
|
||||
sess, err := smux.Server(conn, smuxConfig)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue