]> git.kaiwu.me - nginx.git/commit
SSL: disabled shutdown after connection errors.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 16 Sep 2020 15:26:24 +0000 (18:26 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 16 Sep 2020 15:26:24 +0000 (18:26 +0300)
commitf6c28f93aff7caad3c178d4989b73a6ed3281bcd
tree5e602de6b664f71aaccd4a9c155b580a9be72d63
parenta1864c25861c8cb0b972815e4cbafcf227c4f8cb
SSL: disabled shutdown after connection errors.

This fixes "SSL_shutdown() failed (SSL: ... bad write retry)" errors
as observed on the second SSL_shutdown() call after SSL shutdown fixes in
09fb2135a589 (1.19.2), notably when sending fails in ngx_http_test_expect(),
similarly to ticket #1194.

Note that there are some places where c->error is misused to prevent
further output, such as ngx_http_v2_finalize_connection() if there
are pending streams, or in filter finalization.  These places seem
to be extreme enough to don't care about missing shutdown though.
For example, filter finalization currently prevents keepalive from
being used.
src/event/ngx_event_openssl.c