]> git.kaiwu.me - nginx.git/commitdiff
HTTP/2: removed ngx_debug_point() call.
authorDaniil Bondarev <bondarev@amazon.com>
Tue, 14 Jan 2020 11:20:08 +0000 (14:20 +0300)
committerDaniil Bondarev <bondarev@amazon.com>
Tue, 14 Jan 2020 11:20:08 +0000 (14:20 +0300)
    
With the recent change to prevent frames flood in d4448892a294,
nginx will finalize the connection with NGX_HTTP_V2_INTERNAL_ERROR
whenever flood is detected, causing nginx aborting or stopping if
the debug_points directive is used in nginx config.

src/http/v2/ngx_http_v2.c

index 9b5a0cd5ee31b77a1ee6f16777b58dbb520165cc..2974e9c7952091d1aec7cbd7bfe2650c598854af 100644 (file)
@@ -2466,10 +2466,6 @@ ngx_http_v2_connection_error(ngx_http_v2_connection_t *h2c,
     ngx_log_debug0(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
                    "http2 state connection error");
 
-    if (err == NGX_HTTP_V2_INTERNAL_ERROR) {
-        ngx_debug_point();
-    }
-
     ngx_http_v2_finalize_connection(h2c, err);
 
     return NULL;