[nginx] SPDY: use predefined constant for size of the Stream-ID ...

Valentin Bartenev vbart at nginx.com
Wed Dec 18 14:40:30 UTC 2013


details:   http://hg.nginx.org/nginx/rev/86b563036d5a
branches:  
changeset: 5483:86b563036d5a
user:      Valentin Bartenev <vbart at nginx.com>
date:      Wed Dec 18 18:39:29 2013 +0400
description:
SPDY: use predefined constant for size of the Stream-ID field.

No functional changes.

diffstat:

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

diffs (12 lines):

diff -r a1c65fa499e2 -r 86b563036d5a src/http/ngx_http_spdy_filter_module.c
--- a/src/http/ngx_http_spdy_filter_module.c	Wed Dec 18 18:37:48 2013 +0400
+++ b/src/http/ngx_http_spdy_filter_module.c	Wed Dec 18 18:39:29 2013 +0400
@@ -751,7 +751,7 @@ ngx_http_spdy_filter_get_data_frame(ngx_
             p = buf->start;
             buf->pos = p;
 
-            p += sizeof(uint32_t);
+            p += NGX_SPDY_SID_SIZE;
 
             (void) ngx_spdy_frame_write_flags_and_len(p, flags, len);
 



More information about the nginx-devel mailing list