Welcome! Log In Create A New Profile

Advanced

[nginx] SPDY: constant number of preallocated structures for hea...

Maxim Dounin
March 04, 2014 10:20AM
details: http://hg.nginx.org/nginx/rev/a9116d9b63f9
branches:
changeset: 5589:a9116d9b63f9
user: Valentin Bartenev <vbart@nginx.com>
date: Mon Mar 03 19:24:54 2014 +0400
description:
SPDY: constant number of preallocated structures for headers.

diffstat:

src/http/ngx_http_spdy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c
--- 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)
{

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] SPDY: constant number of preallocated structures for hea...

Maxim Dounin 433 March 04, 2014 10:20AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 290
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready