Welcome! Log In Create A New Profile

Advanced

[nginx] SPDY: use proper macros for value length and headers cou...

Valentin Bartenev
June 04, 2013 06:20PM
details: http://hg.nginx.org/nginx/rev/5776804fff04
branches:
changeset: 5242:5776804fff04
user: Valentin Bartenev <vbart@nginx.com>
date: Wed Jun 05 02:13:52 2013 +0400
description:
SPDY: use proper macros for value length and headers counter.

Currently these macros are synonyms, but this may change in the future
(in particular, spdy/3 uses 4 bytes for lengths).

diffstat:

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

diffs (21 lines):

diff -r 03eb70798821 -r 5776804fff04 src/http/ngx_http_spdy_filter_module.c
--- a/src/http/ngx_http_spdy_filter_module.c Tue Jun 04 19:38:20 2013 +0400
+++ b/src/http/ngx_http_spdy_filter_module.c Wed Jun 05 02:13:52 2013 +0400
@@ -304,7 +304,7 @@ ngx_http_spdy_header_filter(ngx_http_req
last = ngx_http_spdy_nv_write_val(last, "HTTP/1.1");

last = ngx_http_spdy_nv_write_name(last, "status");
- last = ngx_spdy_frame_write_uint16(last, 3);
+ last = ngx_http_spdy_nv_write_vlen(last, 3);
last = ngx_sprintf(last, "%03ui", r->headers_out.status);

count = 2;
@@ -500,7 +500,7 @@ ngx_http_spdy_header_filter(ngx_http_req
count++;
}

- (void) ngx_spdy_frame_write_uint16(buf, count);
+ (void) ngx_http_spdy_nv_write_num(buf, count);

stream = r->spdy_stream;
sc = stream->connection;

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

[nginx] SPDY: use proper macros for value length and headers cou...

Valentin Bartenev 749 June 04, 2013 06:20PM



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

Online Users

Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready