mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 13:09:01 +08:00
SPDY: constant number of preallocated structures for headers.
This commit is contained in:
parent
a2a26a7ce1
commit
3925c1b110
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user