Increase smux and QueuePacketConn buffer sizes

This should increase the maximum amount of inflight data and hopefully
the performance of Snowflake, especially for clients geographically
distant from proxies and the server.
This commit is contained in:
Cecylia Bocovich 2021-07-14 14:42:17 -04:00
parent b203a75c41
commit e6715cb4ee
3 changed files with 14 additions and 3 deletions

View file

@ -11,7 +11,7 @@ import "errors"
var Token = [8]byte{0x12, 0x93, 0x60, 0x5d, 0x27, 0x81, 0x75, 0xf5}
// The size of receive and send queues.
const queueSize = 32
const queueSize = 2048
var errClosedPacketConn = errors.New("operation on closed connection")
var errNotImplemented = errors.New("not implemented")