Skip to content

Commit

Permalink
xray-core: increase nofile limitation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
1715173329 authored and neheb committed Jun 8, 2022
1 parent 1732f4a commit d98fd52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/xray-core/files/xray.init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d98fd52

Please sign in to comment.