Skip to content

Commit

Permalink
wireguard: set preallocbuffers
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Pashmfouroush <[email protected]>
  • Loading branch information
markpash committed Apr 12, 2024
1 parent 7885b21 commit 8f930cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wireguard/device/queueconstants_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ const (
QueueInboundSize = 1024
QueueHandshakeSize = 1024
MaxSegmentSize = (1 << 16) - 1 // largest possible UDP datagram
PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth
PreallocatedBuffersPerPool = 4096 // Disable and allow for infinite memory growth
)
2 changes: 1 addition & 1 deletion wireguard/device/queueconstants_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ const (
QueueInboundSize = 1024
QueueHandshakeSize = 1024
MaxSegmentSize = 2048 - 32 // largest possible UDP datagram
PreallocatedBuffersPerPool = 0 // Disable and allow for infinite memory growth
PreallocatedBuffersPerPool = 4096 // Disable and allow for infinite memory growth
)

0 comments on commit 8f930cd

Please sign in to comment.