This commit is contained in:
bluepython508 committed 2026-10-22 12:27:19 +01:00
1 parent 3530afb854
commit 6903fcff27
2146 files changed
+112256 -190703

No files matched your search

+9 -9
View File
@@ -7,15 +7,15 @@
package device
// Fit within memory limits for iOS's Network Extension API, which has stricter requirements.
// These are vars instead of consts, because heavier network extensions might want to reduce
// them further.
var (
QueueStagedSize = 128
QueueOutboundSize = 1024
QueueInboundSize = 1024
QueueHandshakeSize = 1024
PreallocatedBuffersPerPool uint32 = 1024
// Fit within memory limits for iOS's Network Extension API, which has stricter
// requirements. Heavier network extensions can reduce these further using
// [Device.Option]'s.
const (
DefaultQueueStagedSize = 128
DefaultQueueOutboundSize = 1024
DefaultQueueInboundSize = 1024
DefaultQueueHandshakeSize = 1024
DefaultPreallocatedBuffersPerPool = 1024
)
const MaxSegmentSize = 1700