nginx访问日志:
218.18.*.* - - [10/Sep/2014:13:27:50 +0800] "POST /index.php?date=2014-09-09&module=Live&action=getLastVisitsStart&segment=&idSite=2&period=day HTTP/1.1" 499 0 "http://count.111com.net/index.php?module=CoreHome&action=index&idSite=2&period=day&date=yesterday" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
218.18.*.* - - [10/Sep/2014:13:27:50 +0800] "POST /index.php?date=2014-09-09&module=Annotations&action=getEvolutionIcons&idSite=2&period=day&lastN=30 HTTP/1.1" 499 0 "http://count.111com.net/index.php?module=CoreHome&action=index&idSite=2&period=day&date=yesterday" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
218.18.*.* - - [10/Sep/2014:13:27:50 +0800] "POST /index.php?date=2014-09-09&module=Dashboard&action=getAllDashboards&idSite=2&period=day HTTP/1.1" 499 0 "http://count.111com.net/index.php?module=CoreHome&action=index&idSite=2&period=day&date=yesterday" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
218.18.*.* - - [10/Sep/2014:13:27:50 +0800] "POST /index.php?date=2014-09-09&module=ExampleRssWidget&action=rssPiwik&widget=1&idSite=2&period=day HTTP/1.1" 499 0 "http://count.111com.net/index.php?module=CoreHome&action=index&idSite=2&period=day&date=yesterday" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
nginx定义错误码:
[root@hz logs]# cd /byrd/tools/nginx-1.7.1
[root@hz nginx-1.7.1]# grep 499 . -r
./CHANGES: *) Bugfix: zero status code was logged instead of 499 status code; the
./CHANGES: with 499 status code.
./CHANGES: *) Change: now the 499 error could not be redirected using an
./CHANGES.ru: *) Исправление: вместо кода ответа 499 в лог записывался код 0; ошибка
./CHANGES.ru: завершался с кодом 499.
./CHANGES.ru: *) Изменение: ошибку 499 теперь нельзя перенаправить с помощью директивы
./src/http/ngx_http_core_module.c: if (err->status == NGX_ERROR || err->status == 499) {
./src/http/ngx_http_request.h:#define NGX_HTTP_CLIENT_CLOSED_REQUEST 499
./src/http/ngx_http_special_response.c: ngx_null_string, /* 499, client has closed connection */
Binary file ./objs/nginx matches
[root@hz nginx-1.7.1]# grep NGX_HTTP_CLIENT_CLOSED_REQUEST . -r
./src/http/ngx_http_upstream.c: NGX_HTTP_CLIENT_CLOSED_REQUEST);
./src/http/ngx_http_upstream.c: NGX_HTTP_CLIENT_CLOSED_REQUEST);
./src/http/ngx_http_upstream.c: NGX_HTTP_CLIENT_CLOSED_REQUEST);
./src/http/ngx_http_upstream.c: NGX_HTTP_CLIENT_CLOSED_REQUEST);
./src/http/ngx_http_upstream.c: NGX_HTTP_CLIENT_CLOSED_REQUEST);
./src/http/ngx_http_upstream.c: NGX_HTTP_CLIENT_CLOSED_REQUEST);
./src/http/ngx_http_upstream.c: NGX_HTTP_CLIENT_CLOSED_REQUEST);
./src/http/ngx_http_upstream.c: NGX_HTTP_CLIENT_CLOSED_REQUEST);
./src/http/ngx_http_upstream.c: || rc == NGX_HTTP_CLIENT_CLOSED_REQUEST)
./src/http/ngx_http_request.h:#define NGX_HTTP_CLIENT_CLOSED_REQUEST 499
./src/http/ngx_http_request.c: || rc == NGX_HTTP_CLIENT_CLOSED_REQUEST
./src/http/ngx_http_request.c: ngx_http_finalize_request(r, NGX_HTTP_CLIENT_CLOSED_REQUEST);
原因①:
if (!u->cacheable) {
ngx_http_upstream_finalize_request(r, u,
NGX_HTTP_CLIENT_CLOSED_REQUEST);
}
原因②:
if (!u->cacheable && u->peer.connection) {
ngx_log_error(NGX_LOG_INFO, ev->log, ev->kq_errno,
"kevent() reported that client prematurely closed "
"connection, so upstream connection is closed too");
ngx_http_upstream_finalize_request(r, u,
NGX_HTTP_CLIENT_CLOSED_REQUEST);
return;
}
if (!u->cacheable && u->peer.connection) {
ngx_log_error(NGX_LOG_INFO, ev->log, err,
"epoll_wait() reported that client prematurely closed "
"connection, so upstream connection is closed too");
ngx_http_upstream_finalize_request(r, u,
NGX_HTTP_CLIENT_CLOSED_REQUEST);
return;
}
if (!u->cacheable && u->peer.connection) {
ngx_log_error(NGX_LOG_INFO, ev->log, err,
"client prematurely closed connection, "
"so upstream connection is closed too");
ngx_http_upstream_finalize_request(r, u,
NGX_HTTP_CLIENT_CLOSED_REQUEST);
return;
}
原因③:
ngx_log_error(NGX_LOG_INFO, ev->log, ev->kq_errno,
"kevent() reported that client prematurely closed "
"connection");
if (u->peer.connection == NULL) {
ngx_http_upstream_finalize_request(r, u,
NGX_HTTP_CLIENT_CLOSED_REQUEST);
}
ngx_log_error(NGX_LOG_INFO, ev->log, err,
"epoll_wait() reported that client prematurely closed "
"connection");
if (u->peer.connection == NULL) {
ngx_http_upstream_finalize_request(r, u,
NGX_HTTP_CLIENT_CLOSED_REQUEST);
}
ngx_log_error(NGX_LOG_INFO, ev->log, err,
"client prematurely closed connection");
if (u->peer.connection == NULL) {
ngx_http_upstream_finalize_request(r, u,
NGX_HTTP_CLIENT_CLOSED_REQUEST);
}
原因④:
if (r->connection->error) {
ngx_http_upstream_finalize_request(r, u,
NGX_HTTP_CLIENT_CLOSED_REQUEST);
return;
}
解决方法:
①:未成功[解决方法
proxy_ignore_client_abort on; #如果客户端断开请求,也保持后端的下载
荒野乱斗国际版 (BrawlStars)最新版本v56.274
下载一波超人内置修改器菜单版 安卓版v1.0.2
下载敢达决战官方正版 安卓版v6.7.9
下载敢达决战 安卓版v6.7.9
下载继承了一座戏园子无限声望铜钱版 内置菜单最新版v1.7
继承了一座戏园子折相思版是游戏的破解版本,在该版本中为玩家提
山河半世橙光清软金手指版 无限鲜花v3.24
山河半世是一款超级好玩的橙光恋爱游戏,在游戏中玩家们需要扮演
蓬莱手游折相思版 安卓版v1.0.0
蓬莱免广告版是游戏的修改版本,在该版本中为玩家去除了广告,玩
当红影后橙光游戏破解版2025 最新版v1.0
当红影后橙光破解版是一款超级好玩的娱乐圈题材的橙光游戏,在这
忽然成了万人迷清软完结版 无限鲜花版v12.15
忽然成了万人迷破解版是一款非常好玩的男性向橙光游戏,在有一天