Skip to content

Commit

Permalink
chore(busted) saner default worker_connections
Browse files Browse the repository at this point in the history
The default hard limit for macOS seems to be 4864 file descriptors, and
cannot be modified easily enough (with a simple `ulimit -n`) so that we
can ask developers to run these commands. Hence, in order to avoid a
warning for each `bin/busted` invocation, let's reduce the default to a
saner value that falls within that range (2^12).

From Kong#3167
  • Loading branch information
Tieske authored and thibaultcha committed Jan 22, 2018
1 parent abc3f8a commit c1690d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/busted
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env resty

local DEFAULT_RESTY_FLAGS="-c 65000"
local DEFAULT_RESTY_FLAGS="-c 4096"

do
local lines = getmetatable(io.output()).lines
Expand Down

0 comments on commit c1690d0

Please sign in to comment.