]> git.kaiwu.me - nginx.git/commitdiff
SPDY: constant number of preallocated structures for headers.
authorValentin Bartenev <vbart@nginx.com>
Mon, 3 Mar 2014 15:24:54 +0000 (19:24 +0400)
committerValentin Bartenev <vbart@nginx.com>
Mon, 3 Mar 2014 15:24:54 +0000 (19:24 +0400)
src/http/ngx_http_spdy.c

index b5bfe186021d067af76f029fc1d6d7bb825d4140..2b7b89f18537512054f15e3d20284acb5d120e8f 100644 (file)
@@ -1038,7 +1038,7 @@ ngx_http_spdy_state_headers(ngx_http_spdy_connection_t *sc, u_char *pos,
                        "spdy HEADERS block consists of %ui entries",
                        sc->entries);
 
-        if (ngx_list_init(&r->headers_in.headers, r->pool, sc->entries + 3,
+        if (ngx_list_init(&r->headers_in.headers, r->pool, 20,
                           sizeof(ngx_table_elt_t))
             != NGX_OK)
         {