Mercurial > hg > nginx-quic
comparison src/event/ngx_event_openssl.c @ 4236:2ada2a26b24c
Silently ignoring a stale global SSL error left after disabled renegotiation.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 31 Oct 2011 14:30:03 +0000 |
parents | 5fef0313f2ff |
children | a0505851e70c |
comparison
equal
deleted
inserted
replaced
4235:84db5febe0d4 | 4236:2ada2a26b24c |
---|---|
860 * OpenSSL (at least up to 0.9.8l) does not handle disabled | 860 * OpenSSL (at least up to 0.9.8l) does not handle disabled |
861 * renegotiation gracefully, so drop connection here | 861 * renegotiation gracefully, so drop connection here |
862 */ | 862 */ |
863 | 863 |
864 ngx_log_error(NGX_LOG_NOTICE, c->log, 0, "SSL renegotiation disabled"); | 864 ngx_log_error(NGX_LOG_NOTICE, c->log, 0, "SSL renegotiation disabled"); |
865 | |
866 while (ERR_peek_error()) { | |
867 ngx_ssl_error(NGX_LOG_DEBUG, c->log, 0, | |
868 "ignoring stale global SSL error"); | |
869 } | |
870 | |
871 ERR_clear_error(); | |
865 | 872 |
866 c->ssl->no_wait_shutdown = 1; | 873 c->ssl->no_wait_shutdown = 1; |
867 c->ssl->no_send_shutdown = 1; | 874 c->ssl->no_send_shutdown = 1; |
868 | 875 |
869 return NGX_ERROR; | 876 return NGX_ERROR; |