From 6884183ad9dc40bca5c07cff3d400ff1a9025449 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 13 May 2010 12:52:45 +0000 Subject: allow hash key values more than 255 bytes, it does not actually increase mean hash element size, because due to aligning a byte after key is not used anyway in 3/4 cases on 32-bit platforms and in 7/8 cases on 64-bit platforms --- src/core/ngx_hash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ngx_hash.h') diff --git a/src/core/ngx_hash.h b/src/core/ngx_hash.h index 76e3c774e..beabcb7c3 100644 --- a/src/core/ngx_hash.h +++ b/src/core/ngx_hash.h @@ -14,7 +14,7 @@ typedef struct { void *value; - u_char len; + u_short len; u_char name[1]; } ngx_hash_elt_t; -- cgit