hi,章大侠
发现一个bug,不知道是nginx还是nginx-lua模块的
现象是: 当我们使用ngx.location.capture到一个m3u8文件(缓存命中的情况)
,打印出res.header.content_length 是正常的,大概948,而res.body的大小是523933
, body里面前面948字节是正常的,后面全是乱码
2015/03/28 17:31:59 F[ngx_http_lua_log.c] L[248] f[log_wrapper]
[error] 2280#0: *7088 [lua] channel_upstream_hls_handler.lua:122: modifyResponseAndReturn():
res.header.content_length not equal
res.body size , m3u8 length = 523933 res.header.length:948,
client: 133.1.7.5, server: chenw_cdn_cache, request: "GET /xxxxx/xxxx/filename.m3u8?IASHttpSessionId=xxx&livemode=1
HTTP/1.1", host: "133.1.7.4:6060"
而且,当我们pkill -9 nginx的时候 ,过段时间,比较容易出现上述情况。
没有进行pkill -9 nginx的操作,好像很久也不会出现。
目前我们对这个进行了异常防护,不相等就不处理。
不过想问下,章大侠遇到过吗,是不是个已知的bug?
谢谢
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.
--------------------------------------------------------
ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.