projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1732f4a
)
xray-core: increase nofile limitation
author
Tianling Shen
<cnsztl@immortalwrt.org>
Tue, 7 Jun 2022 08:51:44 +0000
(16:51 +0800)
committer
Rosen Penev
<rosenp@gmail.com>
Wed, 8 Jun 2022 21:06:16 +0000
(14:06 -0700)
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>
net/xray-core/files/xray.init
patch
|
blob
|
history
diff --git
a/net/xray-core/files/xray.init
b/net/xray-core/files/xray.init
index 04b00232b9e187dcd16bf7e04cebadec0754a691..a24255e9d56d1cad99e315cbcae852f9960805cd 100755
(executable)
--- a/
net/xray-core/files/xray.init
+++ b/
net/xray-core/files/xray.init
@@
-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