comparison src/http/v2/ngx_http_v2_table.c @ 7108:2bf605c6edf7

HTTP/2: shortened some debug log messages. This ensures slightly more readable debug logs on 80-character-wide terminals.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 14 Sep 2017 19:06:06 +0300
parents d4b031cf32cf
children 87e9e4aabf1b
comparison
equal deleted inserted replaced
7107:d4b031cf32cf 7108:2bf605c6edf7
178 size_t avail; 178 size_t avail;
179 ngx_uint_t index; 179 ngx_uint_t index;
180 ngx_http_v2_header_t *entry, **entries; 180 ngx_http_v2_header_t *entry, **entries;
181 181
182 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, 182 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
183 "http2 add header to hpack table: \"%V: %V\"", 183 "http2 table add: \"%V: %V\"",
184 &header->name, &header->value); 184 &header->name, &header->value);
185 185
186 if (h2c->hpack.entries == NULL) { 186 if (h2c->hpack.entries == NULL) {
187 h2c->hpack.allocated = 64; 187 h2c->hpack.allocated = 64;
188 h2c->hpack.size = NGX_HTTP_V2_TABLE_SIZE; 188 h2c->hpack.size = NGX_HTTP_V2_TABLE_SIZE;
291 ngx_http_v2_header_t *entry; 291 ngx_http_v2_header_t *entry;
292 292
293 size += 32; 293 size += 32;
294 294
295 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0, 295 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
296 "http2 hpack table account: %uz free:%uz", 296 "http2 table account: %uz free:%uz",
297 size, h2c->hpack.free); 297 size, h2c->hpack.free);
298 298
299 if (size <= h2c->hpack.free) { 299 if (size <= h2c->hpack.free) {
300 h2c->hpack.free -= size; 300 h2c->hpack.free -= size;
301 return NGX_OK; 301 return NGX_OK;