aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2021-03-28 17:45:39 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2021-03-28 17:45:39 +0300
commit179c79ce8afd459acffa50e6dabc60b0b7d9a014 (patch)
treefc91c504be21a6c5c593d85b4e3323d503a71018 /src/http/ngx_http_request.c
parent8885c45e1ead18c1fc9325e372069ec9c55e5938 (diff)
downloadnginx-179c79ce8afd459acffa50e6dabc60b0b7d9a014.tar.gz
nginx-179c79ce8afd459acffa50e6dabc60b0b7d9a014.zip
Fixed handling of already closed connections.
In limit_req, auth_delay, and upstream code to check for broken connections, tests for possible connection close by the client did not work if the connection was already closed when relevant event handler was set. This happened because there were no additional events in case of edge-triggered event methods, and read events were disabled in case of level-triggered ones. Fix is to explicitly post a read event if the c->read->ready flag is set.
Diffstat (limited to 'src/http/ngx_http_request.c')
0 files changed, 0 insertions, 0 deletions