summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_spdy.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2014-01-22 04:58:19 +0400
committerValentin Bartenev <vbart@nginx.com>2014-01-22 04:58:19 +0400
commit3ddf9ccfce12454dfa456d3ef5c92f7472966ebf (patch)
tree80f04b004534ba2b879d6c49227d2f30816c72a4 /src/http/ngx_http_spdy.h
parente62156d8292eb288ad456d6ba1eb96db7ce2a6b6 (diff)
downloadnginx-3ddf9ccfce12454dfa456d3ef5c92f7472966ebf.tar.gz
nginx-3ddf9ccfce12454dfa456d3ef5c92f7472966ebf.tar.bz2
SPDY: store the length of frame instead of its whole size.
The "length" value better corresponds with the specification and reduces confusion about whether frame's header is included in "size" or not. Also this change simplifies some parts of code, since in more cases the length of frame is more useful than its actual size, especially considering that the size of frame header is constant.
Diffstat (limited to 'src/http/ngx_http_spdy.h')
-rw-r--r--src/http/ngx_http_spdy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_spdy.h b/src/http/ngx_http_spdy.h
index 3dab0fecb..652b88f01 100644
--- a/src/http/ngx_http_spdy.h
+++ b/src/http/ngx_http_spdy.h
@@ -142,7 +142,7 @@ struct ngx_http_spdy_out_frame_s {
ngx_http_spdy_out_frame_t *frame);
ngx_http_spdy_stream_t *stream;
- size_t size;
+ size_t length;
ngx_uint_t priority;
unsigned blocked:1;