Skip to content
Snippets Groups Projects
Commit 7f91d039 authored by David Fifield's avatar David Fifield
Browse files

Reduce the smux KeepAliveTimeout on the server from 10 to 4 minutes.

To save memory, we want to more aggressively close stale connections.

tpo/anti-censorship/pluggable-transports/snowflake#40175
parent 3185487a
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment