comparison src/http/ngx_http_request_body.c @ 7738:554c6ae25ffc

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.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 06 Nov 2020 23:44:54 +0300
parents f5a2af0e7079
children 4d5b04daeaff
comparison
equal deleted inserted replaced
7737:ed17a2a95c8d 7738:554c6ae25ffc
672 rc = ngx_http_read_discarded_request_body(r); 672 rc = ngx_http_read_discarded_request_body(r);
673 673
674 if (rc == NGX_OK) { 674 if (rc == NGX_OK) {
675 r->discard_body = 0; 675 r->discard_body = 0;
676 r->lingering_close = 0; 676 r->lingering_close = 0;
677 r->lingering_time = 0;
677 ngx_http_finalize_request(r, NGX_DONE); 678 ngx_http_finalize_request(r, NGX_DONE);
678 return; 679 return;
679 } 680 }
680 681
681 if (rc >= NGX_HTTP_SPECIAL_RESPONSE) { 682 if (rc >= NGX_HTTP_SPECIAL_RESPONSE) {