webmcp
changeset 322:bbdfc5e1ca80
Renamed configuration options for listen function
author | jbe |
---|---|
date | Mon Mar 23 20:23:04 2015 +0100 (2015-03-23) |
parents | 1fcdd5c6f498 |
children | 4603e8781fb9 |
files | framework/bin/mcp.lua |
line diff
1.1 --- a/framework/bin/mcp.lua Mon Mar 23 20:22:48 2015 +0100 1.2 +++ b/framework/bin/mcp.lua Mon Mar 23 20:23:04 2015 +0100 1.3 @@ -301,9 +301,9 @@ 1.4 local moonbridge_listen = listen 1.5 local http = require("moonbridge_http") 1.6 function listen(args) -- overwrite Moonbridge's listen function 1.7 - local http_options = args.http_options or {} 1.8 - local min_requests_per_fork = http_options.min_requests_per_fork or 50 1.9 - local max_requests_per_fork = http_options.max_requests_per_fork or 100 1.10 + assert(args, "No argument passed to listen function") 1.11 + local min_requests_per_fork = args.min_requests_per_fork or 50 1.12 + local max_requests_per_fork = args.max_requests_per_fork or 100 1.13 local interval_handlers = {} 1.14 for j, listener in ipairs(args) do 1.15 if listener.proto == "interval" then