diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-25 02:35:01 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-25 02:50:03 +0200 |
commit | 412a5ed445e9c3e686f67b98920ae65191ef9a04 (patch) | |
tree | 2a59336a32618cd7223630e7f1e417f999c36c49 /wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/queueconstants.go | |
parent | Prevent signal and wait from racing (diff) | |
download | wireguard-apple-412a5ed445e9c3e686f67b98920ae65191ef9a04.tar.xz wireguard-apple-412a5ed445e9c3e686f67b98920ae65191ef9a04.zip |
Keep tabs on memory usage
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/queueconstants.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/queueconstants.go b/wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/queueconstants.go new file mode 100644 index 0000000..410af14 --- /dev/null +++ b/wireguard-go-bridge/src/git.zx2c4.com/wireguard-go/queueconstants.go @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (C) 2017-2018 WireGuard LLC. All Rights Reserved. + */ + +package main + +/* Fit within memory limits for iOS */ + +const ( + QueueOutboundSize = 1024 + QueueInboundSize = 1024 + QueueHandshakeSize = 1024 + MaxSegmentSize = 1700 + PreallocatedBuffersPerPool = 1024 +) |