Skip to content

Commit

Permalink
Close #1384
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed Aug 25, 2016
1 parent c7e4a07 commit 4579593
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kong/cmd/utils/prefix_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@ local function gather_system_infos(compile_env)
local infos = {}

local ulimit, err = get_ulimit()
if not ulimit then return nil, err end
if not ulimit then
return nil, err
elseif tostring(ulimit):lower():match("unlimited") then
ulimit = 65536
end

infos.worker_rlimit = ulimit
infos.worker_connections = math.min(16384, ulimit)
Expand Down

0 comments on commit 4579593

Please sign in to comment.