comparison src/http/ngx_http_request.c @ 7313:e45f09198dab

Allow resetting connections closed by "return 444" (ticket #905). If reset_timedout_connection is on, TCP connections closed by "return 444" will be reset instead of a normal close.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 12 Jul 2018 12:50:20 +0300
parents 89430899c72a
children 3443fe40bdc7
comparison
equal deleted inserted replaced
7312:54683f650cbd 7313:e45f09198dab
2351 if (rc >= NGX_HTTP_SPECIAL_RESPONSE 2351 if (rc >= NGX_HTTP_SPECIAL_RESPONSE
2352 || rc == NGX_HTTP_CREATED 2352 || rc == NGX_HTTP_CREATED
2353 || rc == NGX_HTTP_NO_CONTENT) 2353 || rc == NGX_HTTP_NO_CONTENT)
2354 { 2354 {
2355 if (rc == NGX_HTTP_CLOSE) { 2355 if (rc == NGX_HTTP_CLOSE) {
2356 c->timedout = 1;
2356 ngx_http_terminate_request(r, rc); 2357 ngx_http_terminate_request(r, rc);
2357 return; 2358 return;
2358 } 2359 }
2359 2360
2360 if (r == r->main) { 2361 if (r == r->main) {