You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local function send_mirror_request(premature, method, url, headers, body)
local httpc = http.new()
headers['dev-mirror'] = "1"
local res, err = httpc:request_uri(url, {
version = 1.1,
method = method,
headers = headers,
body = body,
ssl_verify = false,
keepalive_timeout = 65000,
keepalive = true,
keepalive_pool = 200,
})
if not res then
ngx.log(ngx.ERR, "Failed to mirror request: ", err)
return
end
ngx.log(ngx.DEBUG, "response connection:" ..res.headers["Connection"])
local ok, err = httpc:set_keepalive(65000, 200)
if not ok then
ngx.log(ngx.ERR, "failed to set keepalive: ", err)
return
end
end
local ok, err = ngx.timer.at(0, send_mirror_request, ngx.var.request_method, mirror_url, headers, body_data)
if not ok then
ngx.log(ngx.ERR, "Failed to create timer: ", err)
end
recieve log info
[debug] 5868#0: *2873067271 [lua] response connection:keep-alive
[error] 5868#0: *2873067271 [lua] failed to set keepalive: closed, context: ngx.timer
The text was updated successfully, but these errors were encountered:
recieve log info
The text was updated successfully, but these errors were encountered: