Latest update - 7353

This commit is contained in:
2018-09-11 08:44:35 +09:00
parent 248354095a
commit 27d60067fd
3 changed files with 42 additions and 6 deletions
+2 -2
View File
@@ -954,8 +954,8 @@ ngx_http_uwsgi_create_request(ngx_http_request_t *r)
#if 0
/* allow custom uwsgi packet */
if (len > 0 && len < 2) {
ngx_log_error (NGX_LOG_ALERT, r->connection->log, 0,
"uwsgi request is too little: %uz", len);
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
"uwsgi request is too little: %uz", len);
return NGX_ERROR;
}
#endif
+4
View File
@@ -3313,6 +3313,10 @@ ngx_http_lingering_close_handler(ngx_event_t *rev)
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "lingering read: %z", n);
if (n == NGX_AGAIN) {
break;
}
if (n == NGX_ERROR || n == 0) {
ngx_http_close_request(r, 0);
return;