Skip to content

Commit 7b4eb5b

Browse files
committed
Adjust hash bucket size of small_light_init_params. refs #65
As ngx_cacheline_size is environment-dependent and sometimes small, hash bucket size is not enough depending on the environment.
1 parent 4a544bd commit 7b4eb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_small_light_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static ngx_int_t ngx_http_small_light_header_filter(ngx_http_request_t *r)
263263
hash_init.hash = &ctx->hash;
264264
hash_init.key = ngx_hash_key_lc;
265265
hash_init.max_size = 128;
266-
hash_init.bucket_size = ngx_cacheline_size;
266+
hash_init.bucket_size = 128;
267267
hash_init.name = "small_light_init_params";
268268
hash_init.pool = ctx->params.keys.pool;
269269
hash_init.temp_pool = NULL;

0 commit comments

Comments
 (0)