]> git.kaiwu.me - nginx.git/commit
SSL: fixed non-working SSL shutdown on lingering close.
authorRuslan Ermilov <ru@nginx.com>
Fri, 6 Nov 2020 20:44:54 +0000 (23:44 +0300)
committerRuslan Ermilov <ru@nginx.com>
Fri, 6 Nov 2020 20:44:54 +0000 (23:44 +0300)
commitad2b9944b012699c225d75e63aeadf61d9ce3367
treeb1f5b5fae77cf296e2faf1b635d2db97c6fe569e
parentaad0d1bf1cab58a1b1e1499485e63b7a15ab183c
SSL: fixed non-working SSL shutdown on lingering close.

When doing lingering close, the socket was first shut down for writing,
so SSL shutdown initiated after lingering close was not able to send
the close_notify alerts (ticket #2056).

The fix is to call ngx_ssl_shutdown() before shutting down the socket.
src/http/ngx_http_request.c
src/http/ngx_http_request_body.c
src/http/v2/ngx_http_v2.c