aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDavid Fifield <david@bamsoftware.com>2022-09-25 14:58:31 -0600
committerDavid Fifield <david@bamsoftware.com>2022-12-08 08:03:54 -0700
commitd4749d2c1dd5d9e59d8994d5b84102f7b0afd0ef (patch)
treeed7c5e4d8fc8815bfedc40b41d776eda02f7aae1 /common
parent77b186ae6eb7f61ff4e51494c238388b88f68194 (diff)
downloadsnowflake-d4749d2c1dd5d9e59d8994d5b84102f7b0afd0ef.tar.gz
snowflake-d4749d2c1dd5d9e59d8994d5b84102f7b0afd0ef.zip
Reduce turbotunnel queueSize from 2048 to 512.
This is to reduce heap usage. https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40179 Past discussion of queueSize: https://lists.torproject.org/pipermail/anti-censorship-team/2021-July/000188.html https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/48#note_2744619
Diffstat (limited to 'common')
-rw-r--r--common/turbotunnel/consts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/turbotunnel/consts.go b/common/turbotunnel/consts.go
index 34c474f..d9bf324 100644
--- a/common/turbotunnel/consts.go
+++ b/common/turbotunnel/consts.go
@@ -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 = 2048
+const queueSize = 512
var errClosedPacketConn = errors.New("operation on closed connection")
var errNotImplemented = errors.New("not implemented")