diff options
author | Valentin Bartenev <vbart@nginx.com> | 2014-03-03 19:24:54 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2014-03-03 19:24:54 +0400 |
commit | 3925c1b110ef13a3e4130e95a06cc85594bc4494 (patch) | |
tree | 09a6eb43dd57e22f7305d9a76e56a54b3d1189d8 /src | |
parent | a2a26a7ce19ba8308cef5381456070fe599d0eb7 (diff) | |
download | nginx-3925c1b110ef13a3e4130e95a06cc85594bc4494.tar.gz nginx-3925c1b110ef13a3e4130e95a06cc85594bc4494.zip |
SPDY: constant number of preallocated structures for headers.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_spdy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c index b5bfe1860..2b7b89f18 100644 --- 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_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) { |