Skip to content

Commit

Permalink
set port blocking timeout to 1 second
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Dec 11, 2015
1 parent ab908b3 commit 3bdb991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/cli/utils/signal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ end
-- @return A boolean: true for success, false otherwise
function _M.send_signal(args_config, signal)
-- Make sure nginx is there and is openresty
local port_timeout = 0 --Default 0 to not change current behaviour. TODO: make timeout configurable (note: this is a blocking timeout!)
local port_timeout = 1 -- OPT: make timeout configurable (note: this is a blocking timeout!)
local nginx_path = find_nginx()
if not nginx_path then
cutils.logger:error_exit(string.format("Kong cannot find an 'nginx' executable.\nMake sure it is in your $PATH or in one of the following directories:\n%s", table.concat(NGINX_SEARCH_PATHS, "\n")))
Expand Down

0 comments on commit 3bdb991

Please sign in to comment.