Mercurial > hg > nginx
changeset 5589:a9116d9b63f9
SPDY: constant number of preallocated structures for headers.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 03 Mar 2014 19:24:54 +0400 |
parents | 6fc3921025f0 |
children | 6808ea2d69e4 |
files | src/http/ngx_http_spdy.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -1038,7 +1038,7 @@ ngx_http_spdy_state_headers(ngx_http_spd "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) {