comparison src/http/ngx_http_spdy.h @ 5529:e4adaa47af65

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.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 22 Jan 2014 04:58:19 +0400
parents d5de6c25b759
children 827e53c136b0
comparison
equal deleted inserted replaced
5528:d5de6c25b759 5529:e4adaa47af65
140 ngx_chain_t *last; 140 ngx_chain_t *last;
141 ngx_int_t (*handler)(ngx_http_spdy_connection_t *sc, 141 ngx_int_t (*handler)(ngx_http_spdy_connection_t *sc,
142 ngx_http_spdy_out_frame_t *frame); 142 ngx_http_spdy_out_frame_t *frame);
143 143
144 ngx_http_spdy_stream_t *stream; 144 ngx_http_spdy_stream_t *stream;
145 size_t size; 145 size_t length;
146 146
147 ngx_uint_t priority; 147 ngx_uint_t priority;
148 unsigned blocked:1; 148 unsigned blocked:1;
149 unsigned fin:1; 149 unsigned fin:1;
150 }; 150 };