Opened 6 years ago

Closed 19 months ago

#1537 closed enhancement (duplicate)

Allow for test_types_buffer_size to be set in server configuration

Reported by: Meteor0id@… Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.13.x
Keywords: mime Cc:
uname -a: Linux ffswebserver 3.16.0-5-amd64 #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08) x86_64 GNU/Linux
nginx -V: build by gcc 4.9.2 (Debian 4.9.2-10+deb8u1)

Description

As I added a bunch of MIME types to gzip_types in my server block, nginx -t returned I need to increase test_types_hash_bucket_size.
Appearently I can do this in the config for types_hash_bucket_size, but not for test_types_has_bucket_size. This is currently hardcoded.

Could we add the option to configure this setting throught the config file? It might also be relevant to do the same for other test_ settings. My current configuration doenst seem very unusual to me, so I can image more people encounter this limitation after adding some MIME types.

Change History (3)

comment:1 by Meteor0id@…, 6 years ago

title should be test_types_hash_buffer_size

Version 0, edited 6 years ago by Meteor0id@… (next)

comment:2 by Maxim Dounin, 6 years ago

Could you please provide the exact error message you see, and exact configuration snippet which causes it? A message about test_types_hash_bucket_size is only expected to appear when you are trying to use a MIME type which is too long, and it is more or less trivial to write (an incorrect) configuration which triggers this message unintentionally, see #203. See also #1446.

comment:3 by Maxim Dounin, 19 months ago

Keywords: mime added
Resolution: duplicate
Status: newclosed

Feedback timeout. Most likely it is a duplicate of #203.

Note: See TracTickets for help on using tickets.