# Test\_types\_hash\_max\_size?

**URL:** <https://www.ruby-forum.com/t/test-types-hash-max-size/204033>\
**Category:** NGINX\
**Created:** [March 3, 2011, 6:44pm UTC](https://www.ruby-forum.com/t/test-types-hash-max-size/204033 "2011-03-03T18:44:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 3, 2011, 6:44pm UTC](https://www.ruby-forum.com/t/test-types-hash-max-size/204033/1 "2011-03-03T18:44:53Z")

</div>

I change some things around in my config and now I’m getting this:

could not build the test\_types\_hash, you should increase either  
test\_types\_hash\_max\_size: 2048 or test\_types\_hash\_bucket\_size: 64

Problem is those values are hard coded in the source it seems.

Ideas?

–  
Brian A.

---

<div class="post-metadata">

**Author:** ![AkinsS\_Brian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d2c977/32.png) [@AkinsS\_Brian](https://www.ruby-forum.com/u/AkinsS_Brian)\
**Post date:** [March 3, 2011, 7:04pm UTC](https://www.ruby-forum.com/t/test-types-hash-max-size/204033/2 "2011-03-03T19:04:56Z")

</div>

On Mar 3, 2011, at 20:42 , Akins, Brian wrote:

> I change some things around in my config and now I’m getting this:
> 
> could not build the test\_types\_hash, you should increase either  
> test\_types\_hash\_max\_size: 2048 or test\_types\_hash\_bucket\_size: 64
> 
> Problem is those values are hard coded in the source it seems.
> 
> Ideas?

It should be increased to 8192. The patch attached.

---

<div class="post-metadata">

**Author:** ![AkinsS\_Brian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d2c977/32.png) [@AkinsS\_Brian](https://www.ruby-forum.com/u/AkinsS_Brian)\
**Post date:** [March 4, 2011, 11:28am UTC](https://www.ruby-forum.com/t/test-types-hash-max-size/204033/3 "2011-03-04T11:28:42Z")

</div>

On 03.03.2011, at 20:42, Akins, Brian wrote:

> I change some things around in my config and now I’m getting this:
> 
> could not build the test\_types\_hash, you should increase either  
> test\_types\_hash\_max\_size: 2048 or test\_types\_hash\_bucket\_size: 64

test\_types\_hash is used for directives such as gzip\_types, ssi\_types,  
etc.  
2048 size means that there are about 1500-1800 elements in these  
directives.  
Do you really have this issue ?

–  
Igor S.

> **[Igor Sysoev](http://sysoev.ru/en/)**

---

<div class="post-metadata">

**Author:** ![AkinsS\_Brian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d2c977/32.png) [@AkinsS\_Brian](https://www.ruby-forum.com/u/AkinsS_Brian)\
**Post date:** [March 5, 2011, 1:53am UTC](https://www.ruby-forum.com/t/test-types-hash-max-size/204033/4 "2011-03-05T01:53:18Z")

</div>

On 3/4/11 5:27 AM, “Igor S.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 2048 size means that there are about 1500-1800 elements in these  
> directives.  
> Do you really have this issue ?

I don’t think so, but got an the above error. If I rearrange the config  
some, it goes away. Was going to look at it some more, but haven’t had  
time.

–  
Brian A.
