github.com/amnezia-vpn/amneziawg-go@v0.2.8/device/queueconstants_default.go (about)

     1  //go:build !android && !ios && !windows
     2  
     3  /* SPDX-License-Identifier: MIT
     4   *
     5   * Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
     6   */
     7  
     8  package device
     9  
    10  import "github.com/amnezia-vpn/amneziawg-go/conn"
    11  
    12  const (
    13  	QueueStagedSize            = conn.IdealBatchSize
    14  	QueueOutboundSize          = 1024
    15  	QueueInboundSize           = 1024
    16  	QueueHandshakeSize         = 1024
    17  	MaxSegmentSize             = (1 << 16) - 1 // largest possible UDP datagram
    18  	PreallocatedBuffersPerPool = 0             // Disable and allow for infinite memory growth
    19  )