使用lua-nginx-module 最新版本0.10.9
代码追踪到 ngx_http_request.c 的 ngx_http_test_reading函数
#if (NGX_HTTP_V2)
if (r->stream) {
if (c->error) {
err = 0; // 此处进入close ,发送 NGX_HTTP_CLIENT_CLOSED_REQUEST
goto closed;
}
return;
}
#endif
......
closed:
if (err) {
rev->error = 1;
}
ngx_log_error(NGX_LOG_INFO, c->log, err,
"client prematurely closed connection");
ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST);
现象:
出现499 状态码,每次499 状态码都是来自同一IP,同一时间出现。http1.1无此问题