]> git.kaiwu.me - nginx.git/commit
SSL: disabled sending shutdown after ngx_http_test_reading().
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Aug 2020 15:52:34 +0000 (18:52 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Aug 2020 15:52:34 +0000 (18:52 +0300)
commiteae2b2fdf15c52f058c0c08763a5c373997d0535
treed623e6f62493ee08b7c8c95080eb25b9484996d4
parent1d696cd37947ef816bde4d54d7b6f97374f1151d
SSL: disabled sending shutdown after ngx_http_test_reading().

Sending shutdown when ngx_http_test_reading() detects the connection is
closed can result in "SSL_shutdown() failed (SSL: ... bad write retry)"
critical log messages if there are blocked writes.

Fix is to avoid sending shutdown via the c->ssl->no_send_shutdown flag,
similarly to how it is done in ngx_http_keepalive_handler() for kqueue
when pending EOF is detected.

Reported by Jan Prachaƙ
(http://mailman.nginx.org/pipermail/nginx-devel/2018-December/011702.html).
src/http/ngx_http_request.c