mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 01:15:51 +03:00
[PR #5275] Add reuseport to improve performance and reduce packet drops #4140
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#4140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/5275
Author: @7heMech
Created: 2/4/2026
Status: 🔄 Open
Base:
develop← Head:develop📝 Commits (1)
e72dfc3Add reuseport to improve performance and reduce packet drops📊 Changes
1 file changed (+4 additions, -4 deletions)
View changed files
📝
backend/templates/stream.conf(+4 -4)📄 Description
Users reported extreme packet loss (up to 80%) when streaming UDP-based services like TeamSpeak 3 through Nginx Proxy Manager. This issue is primarily caused by lock contention on the UDP receive buffer when multiple Nginx worker processes compete for the same socket.
This PR enables the reuseport socket option for both TCP and UDP stream templates.
By enabling reuseport, the Linux kernel creates multiple listening sockets and balances incoming packets across workers at the kernel level. This ensures that packets from the same connection consistently reach the same worker, significantly reducing packet drops and stabilizing high-bandwidth UDP streams.
The change is compatible with Linux Kernel 3.9+ (released in 2013) or Debian 7.
Resolves #5000
Thanks to @zdzichu6969
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.