Welcome! Log In Create A New Profile

Advanced

[nginx] Stream ssl_preread: removed internal macro.

Vladimir Homutov
September 15, 2016 09:20AM
details: http://hg.nginx.org/nginx/rev/e83540f825cd
branches:
changeset: 6696:e83540f825cd
user: Vladimir Homutov <vl@nginx.com>
date: Thu Sep 15 15:36:02 2016 +0300
description:
Stream ssl_preread: removed internal macro.

The ngx_log_debug() macro is internal and should not be used.

diffstat:

src/stream/ngx_stream_ssl_preread_module.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r 060d71292b69 -r e83540f825cd src/stream/ngx_stream_ssl_preread_module.c
--- a/src/stream/ngx_stream_ssl_preread_module.c Thu Sep 15 14:56:51 2016 +0300
+++ b/src/stream/ngx_stream_ssl_preread_module.c Thu Sep 15 15:36:02 2016 +0300
@@ -137,14 +137,14 @@ ngx_stream_ssl_preread_handler(ngx_strea
while (last - p >= 5) {

if (p[0] != 0x16) {
- ngx_log_debug(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
- "ssl preread: not a handshake");
+ ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
+ "ssl preread: not a handshake");
return NGX_DECLINED;
}

if (p[1] != 3 || p[2] == 0) {
- ngx_log_debug(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
- "ssl preread: unsupported SSL version");
+ ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
+ "ssl preread: unsupported SSL version");
return NGX_DECLINED;
}

@@ -230,8 +230,8 @@ ngx_stream_ssl_preread_parse_record(ngx_

case sw_header:
if (p[0] != 1) {
- ngx_log_debug(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
- "ssl preread: not a client hello");
+ ngx_log_debug0(NGX_LOG_DEBUG_STREAM, ctx->log, 0,
+ "ssl preread: not a client hello");
return NGX_DECLINED;
}


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Stream ssl_preread: removed internal macro.

Vladimir Homutov 476 September 15, 2016 09:20AM



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

Online Users

Guests: 258
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