aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_resolver.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2021-03-24 14:03:33 +0300
committerSergey Kandaurov <pluknet@nginx.com>2021-03-24 14:03:33 +0300
commitcc73d7688c315dc624282abdbbba7aec82aabad5 (patch)
tree14f8265665fbbd5450cc0ab1e58cd4d3865a2215 /src/core/ngx_resolver.c
parent11477fb633ddaf299f9be01f43aac322056d98dc (diff)
downloadnginx-cc73d7688c315dc624282abdbbba7aec82aabad5.tar.gz
nginx-cc73d7688c315dc624282abdbbba7aec82aabad5.zip
Cancel keepalive and lingering close on EOF better (ticket #2145).
Unlike in 75e908236701, which added the logic to ngx_http_finalize_request(), this change moves it to a more generic routine ngx_http_finalize_connection() to cover cases when a request is finalized with NGX_DONE. In particular, this fixes unwanted connection transition into the keepalive state after receiving EOF while discarding request body. With edge-triggered event methods that means the connection will last for extra seconds as set in the keepalive_timeout directive.
Diffstat (limited to 'src/core/ngx_resolver.c')
0 files changed, 0 insertions, 0 deletions