From: Tianling Shen Date: Tue, 7 Jun 2022 08:51:44 +0000 (+0800) Subject: xray-core: increase nofile limitation X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d98fd528652c58e106a9bb4becd5ac8bb19a0ffb;p=feed%2Fpackages.git 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 Signed-off-by: Tianling Shen --- diff --git a/net/xray-core/files/xray.init b/net/xray-core/files/xray.init index 04b00232b9..a24255e9d5 100755 --- 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