nginx 1.2.3 chunkin 模块问题,很奇怪,fname是有,open文件却说文件不存在
open /usr/local/nginx/client_body_temp/0000000022 /usr/local/nginx/client_body_temp/0000000022: No such file or directory
lua文件:
local fname = ngx.req.get_body_file()
if nil == fname then
ngx.print("open " .. fname .. " " .. err)
ngx.exit(200)
end
nlog.debug(" body_file" .. tostring(ngx.req.get_body_file()))
local fp,err = io.open(fname,"rb")
if nil == fp then
ngx.print("open " .. fname .. " " .. err)
ngx.exit(200)
end
data = "" "*a"
fp:close()
nginx.conf 配置
。。。。。。。。
chunkin on;
error_page 411 = @my_411_error;
server {
listen 80;
server_name *.intsig.net *.camcard.me *.camcard.com;
lua_check_client_abort on;
include *server.conf;
location @my_411_error {
chunkin_resume;
}
}