mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 10:38:21 +04:00
xray-core: increase nofile limitation
This fixes "too many open files" error caused by max-file limitation
when xray processes large traffic.
Reported-by: Terry Ding <terryding77@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit d98fd52865)
This commit is contained in:
committed by
Rosen Penev
parent
b07d877b0f
commit
bce5bf2d1e
@@ -39,6 +39,8 @@ start_service() {
|
||||
procd_set_param env XRAY_LOCATION_ASSET="$datadir"
|
||||
procd_set_param file $conffiles
|
||||
|
||||
procd_set_param limits core="unlimited"
|
||||
procd_set_param limits nofile="1000000 1000000"
|
||||
procd_set_param stdout 1
|
||||
procd_set_param stderr 1
|
||||
procd_set_param respawn
|
||||
|
||||
Reference in New Issue
Block a user