comparison src/http/ngx_http_spdy.h @ 5528:d5de6c25b759

SPDY: use frame->next pointer to chain free frames. There is no need in separate "free" pointer and like it is for ngx_chain_t the "next" pointer can be used. But after this change successfully handled frame should not be accessed, so the frame handling cycle was improved to store pointer to the next frame before processing. Also worth noting that initializing "free" pointer to NULL in the original code was surplus.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 22 Jan 2014 04:58:19 +0400
parents 206c56e23a96
children e4adaa47af65
comparison
equal deleted inserted replaced
5527:f3f7b72ca6e9 5528:d5de6c25b759
139 ngx_chain_t *first; 139 ngx_chain_t *first;
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_out_frame_t *free;
145
146 ngx_http_spdy_stream_t *stream; 144 ngx_http_spdy_stream_t *stream;
147 size_t size; 145 size_t size;
148 146
149 ngx_uint_t priority; 147 ngx_uint_t priority;
150 unsigned blocked:1; 148 unsigned blocked:1;