aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/v3/ngx_http_v3.h5
-rw-r--r--src/http/v3/ngx_http_v3_module.c12
2 files changed, 4 insertions, 13 deletions
diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h
index bea560864..9076b6ff5 100644
--- a/src/http/v3/ngx_http_v3.h
+++ b/src/http/v3/ngx_http_v3.h
@@ -50,11 +50,6 @@
#define NGX_HTTP_V3_STREAM_SERVER_DECODER 5
#define NGX_HTTP_V3_MAX_KNOWN_STREAM 6
-#define NGX_HTTP_V3_DEFAULT_MAX_TABLE_CAPACITY 16384
-#define NGX_HTTP_V3_DEFAULT_MAX_BLOCKED_STREAMS 16
-#define NGX_HTTP_V3_DEFAULT_MAX_CONCURRENT_PUSHES 10
-#define NGX_HTTP_V3_DEFAULT_MAX_UNI_STREAMS 3
-
/* HTTP/3 errors */
#define NGX_HTTP_V3_ERR_NO_ERROR 0x100
#define NGX_HTTP_V3_ERR_GENERAL_PROTOCOL_ERROR 0x101
diff --git a/src/http/v3/ngx_http_v3_module.c b/src/http/v3/ngx_http_v3_module.c
index 873ebb2f3..4b59b097c 100644
--- a/src/http/v3/ngx_http_v3_module.c
+++ b/src/http/v3/ngx_http_v3_module.c
@@ -124,20 +124,16 @@ ngx_http_v3_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
ngx_http_v3_srv_conf_t *conf = child;
ngx_conf_merge_size_value(conf->max_table_capacity,
- prev->max_table_capacity,
- NGX_HTTP_V3_DEFAULT_MAX_TABLE_CAPACITY);
+ prev->max_table_capacity, 16384);
ngx_conf_merge_uint_value(conf->max_blocked_streams,
- prev->max_blocked_streams,
- NGX_HTTP_V3_DEFAULT_MAX_BLOCKED_STREAMS);
+ prev->max_blocked_streams, 16);
ngx_conf_merge_uint_value(conf->max_concurrent_pushes,
- prev->max_concurrent_pushes,
- NGX_HTTP_V3_DEFAULT_MAX_CONCURRENT_PUSHES);
+ prev->max_concurrent_pushes, 10);
ngx_conf_merge_uint_value(conf->max_uni_streams,
- prev->max_uni_streams,
- NGX_HTTP_V3_DEFAULT_MAX_UNI_STREAMS);
+ prev->max_uni_streams, 3);
return NGX_CONF_OK;
}