revert change on SetStreamMode

This commit is contained in:
Shelikhoo 2024-09-11 15:00:30 +01:00 committed by WofWca
parent 69045b5fbb
commit 37f2f42ea0

View file

@ -359,8 +359,8 @@ func newSession(snowflakes SnowflakeCollector, clientIDCandid turbotunnel.Client
pconn.Close() pconn.Close()
return nil, nil, err return nil, nil, err
} }
// Disallow coalescing the payloads of consecutive sends. // Permit coalescing the payloads of consecutive sends.
conn.SetStreamMode(false) conn.SetStreamMode(true)
// 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
conn.SetWindowSize(WindowSize, WindowSize) conn.SetWindowSize(WindowSize, WindowSize)