Welcome! Log In Create A New Profile


question about ngx_ssl_clear_error()

January 28, 2015 09:00AM
in src/event/ngx_event_openssl.c:1907, i found function
ngx_ssl_clear_error() call openssl function ERR_peek_error() in a
while loop, intend to clear global error code queue,

but according to openssl's documents and source code, ERR_peek_error() will not
pop the first error code , and it does not modify the queue.

so it looks like this will cause a busy loop.

is my understanding correct?


nginx source code
static void
ngx_ssl_clear_error(ngx_log_t *log)
while (ERR_peek_error()) {
ngx_ssl_error(NGX_LOG_ALERT, log, 0, "ignoring stale global SSL error");



openssl source code:

nginx-devel mailing list
Subject Author Views Posted

question about ngx_ssl_clear_error()

何龙 1143 January 28, 2015 09:00AM

Re: question about ngx_ssl_clear_error()

何龙 496 January 28, 2015 09:08AM

Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 90
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready