update comment on conn.SetStreamMode

This commit is contained in:
Shelikhoo 2024-09-11 14:51:08 +01:00 committed by WofWca
parent 3a2b2fc969
commit 69045b5fbb

View file

@ -359,7 +359,7 @@ func newSession(snowflakes SnowflakeCollector, clientIDCandid turbotunnel.Client
pconn.Close() pconn.Close()
return nil, nil, err return nil, nil, err
} }
// Permit coalescing the payloads of consecutive sends. // Disallow coalescing the payloads of consecutive sends.
conn.SetStreamMode(false) conn.SetStreamMode(false)
// Set the maximum send and receive window sizes to a high number // Set the maximum send and receive window sizes to a high number
// Removes KCP bottlenecks: https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40026 // Removes KCP bottlenecks: https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40026