diff options
author | Ruslan Ermilov <ru@nginx.com> | 2020-12-08 01:43:36 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2020-12-08 01:43:36 +0300 |
commit | e62a5132ca6ab74f324bf46fe91ee89e1951578c (patch) | |
tree | af6466408c02d152c872216911b66e004e6a5140 /src/http/ngx_http_request.c | |
parent | cfa669151e605410cfb57cc70b0e4023f4777602 (diff) | |
download | nginx-e62a5132ca6ab74f324bf46fe91ee89e1951578c.tar.gz nginx-e62a5132ca6ab74f324bf46fe91ee89e1951578c.zip |
SSL: fixed SSL shutdown on lingering close.
Ensure c->recv is properly reset to ngx_recv if SSL_shutdown()
blocks on writing.
The bug had appeared in 554c6ae25ffc.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 12a68a961..e954c7c25 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -3397,8 +3397,6 @@ ngx_http_set_lingering_close(ngx_connection_t *c) c->ssl->handler = ngx_http_set_lingering_close; return; } - - c->recv = ngx_recv; } #endif |