]> git.kaiwu.me - nginx.git/commit
SPDY: use frame->next pointer to chain free frames.
authorValentin Bartenev <vbart@nginx.com>
Wed, 22 Jan 2014 00:58:19 +0000 (04:58 +0400)
committerValentin Bartenev <vbart@nginx.com>
Wed, 22 Jan 2014 00:58:19 +0000 (04:58 +0400)
commite62156d8292eb288ad456d6ba1eb96db7ce2a6b6
tree21fa9d31d24c75a79521af09a2f2666a6dc51161
parent650984cd20fe526a6eef0c014fbd92a06aeb1f7a
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.
src/http/ngx_http_spdy.c
src/http/ngx_http_spdy.h
src/http/ngx_http_spdy_filter_module.c