Mercurial > hg > nginx
comparison src/http/ngx_http_spdy.c @ 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 | cff36d2d7fe6 |
children | 6808ea2d69e4 |
comparison
equal
deleted
inserted
replaced
5588:6fc3921025f0 | 5589:a9116d9b63f9 |
---|---|
1036 | 1036 |
1037 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 1037 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
1038 "spdy HEADERS block consists of %ui entries", | 1038 "spdy HEADERS block consists of %ui entries", |
1039 sc->entries); | 1039 sc->entries); |
1040 | 1040 |
1041 if (ngx_list_init(&r->headers_in.headers, r->pool, sc->entries + 3, | 1041 if (ngx_list_init(&r->headers_in.headers, r->pool, 20, |
1042 sizeof(ngx_table_elt_t)) | 1042 sizeof(ngx_table_elt_t)) |
1043 != NGX_OK) | 1043 != NGX_OK) |
1044 { | 1044 { |
1045 ngx_http_spdy_close_stream(sc->stream, | 1045 ngx_http_spdy_close_stream(sc->stream, |
1046 NGX_HTTP_INTERNAL_SERVER_ERROR); | 1046 NGX_HTTP_INTERNAL_SERVER_ERROR); |