2015/07/17 11:08:46 [debug] 32481#0: *534 lua run post subrequest handler, rc:-2 c:2
2015/07/17 11:08:46 [debug] 32481#0: *534 event timer add: 14: 60000:1437102586841
2015/07/17 11:08:46 [debug] 32481#0: *534 http posted request: "/BEB20A14DA5AA173125CC38A8AB0FF88_20150606_1_1_255.mp4/playlist.m3u8?arange=100"
2015/07/17 11:08:46 [debug] 32481#0: *534 rewrite phase: 5
2015/07/17 11:08:46 [debug] 32481#0: *534 lua rewrite handler, uri:"/BEB20A14DA5AA173125CC38A8AB0FF88_20150606_1_1_255.mp4/playlist.m3u8" c:2
2015/07/17 11:08:46 [debug] 32481#0: *534 lua run subrequests done, resuming lua thread
2015/07/17 11:08:46 [debug] 32481#0: *534 lua handle subrequest responses
2015/07/17 11:08:46 [debug] 32481#0: *534 lua run thread, top:0 c:2
2015/07/17 11:08:46 [debug] 32481#0: *534 [lua] rewrite_cc_M3U8.lua:44: REWRITE M3U8 status:200 bodysize:0
感觉没什么异常的地方呀, 附件是完整的日志, 给我的感觉好像就是proxy_cache 作为子请求发送不了body
在 2015年7月17日星期五 UTC+8上午10:53:49,agentzh写道:
Hello!
2015-07-16 15:56 GMT+08:00 韩世林:
> 从日志里看到 status是200,但是却取不到body, lua线程退出了。 如果我把proxy_cache 去掉, 直接proxy_pass到后端
> 我可以取到body。
> 难道是proxy_cache 模式有什么限制吗?
>
我们公司的 Bag API 这个服务就是使用的 ngx.location.capture + proxy_pass + proxy_cache :)
调试这样的问题,建议开启 nginx 调试日志进行分析:
http://nginx.org/en/docs/debugging_log.html
Regards,
-agentzh