]> git.kaiwu.me - nginx.git/commitdiff
SSL: logging level of "https proxy request" errors.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 5 Jul 2018 17:45:29 +0000 (20:45 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 5 Jul 2018 17:45:29 +0000 (20:45 +0300)
The "http request" and "https proxy request" errors cannot happen
with HTTP due to pre-handshake checks in ngx_http_ssl_handshake(),
but can happen when SSL is used in stream and mail modules.

src/event/ngx_event_openssl.c

index fe14a291ae1c8e4604636c4c4d4e4a0e00784e7a..b8680561480cf82ec22547347582977cfc6e86b0 100644 (file)
@@ -2062,6 +2062,8 @@ ngx_ssl_connection_error(ngx_connection_t *c, int sslerr, ngx_err_t err,
             || n == SSL_R_DIGEST_CHECK_FAILED                        /*  149 */
             || n == SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST              /*  151 */
             || n == SSL_R_EXCESSIVE_MESSAGE_SIZE                     /*  152 */
+            || n == SSL_R_HTTPS_PROXY_REQUEST                        /*  155 */
+            || n == SSL_R_HTTP_REQUEST                               /*  156 */
             || n == SSL_R_LENGTH_MISMATCH                            /*  159 */
 #ifdef SSL_R_NO_CIPHERS_PASSED
             || n == SSL_R_NO_CIPHERS_PASSED                          /*  182 */