Skip to content

Conversation

@foxriver1025
Copy link
Contributor

Fix bug
Modify "ngx_ssl_shutdown" process:

  1. "if (n == 1)" needs "ngx_del_async_conn", so add the code
  2. "if (sslerr == SSL_ERROR_ZERO_RETURN || ERR_peek_error() == 0)" move behind "if (sslerr == SSL_ERROR_WANT_ASYNC)", if job is paused, needs to call "ngx_ssl_shutdown" again.
  3. In "if (sslerr == SSL_ERROR_ZERO_RETURN || ERR_peek_error() == 0)" branch, no need "ngx_del_async_conn", because it must be invoked before, so delete the code.

@CLAassistant
Copy link

CLAassistant commented Jun 26, 2023

CLA assistant check
All committers have signed the CLA.

@foxriver1025 foxriver1025 force-pushed the master branch 2 times, most recently from c07f9bf to 3c7a36d Compare June 26, 2023 06:36
@lianglli lianglli requested review from jiuzhoucui and lianglli and removed request for lianglli June 26, 2023 12:27
@chobits chobits merged commit 565d4a3 into alibaba:master Jun 30, 2023
@chobits chobits changed the title fix tengine coredump bug with ssl_async on. issues#1793 fixed segfault with ssl_async enabled Jun 30, 2023
@chobits chobits changed the title fixed segfault with ssl_async enabled fixed reload segfault with ssl_async enabled Jun 30, 2023
@chobits chobits changed the title fixed reload segfault with ssl_async enabled fixed segfault on reload with ssl_async enabled Jun 30, 2023
@chobits chobits changed the title fixed segfault on reload with ssl_async enabled fixed segfault in ngx_ssl_shutdown() with ssl_async enabled Jun 30, 2023
@lianglli lianglli added this to the 3.0.0 milestone Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

segfault in ngx_ssl_shutdown() with ssl_async on

4 participants