Mercurial > hg > nginx
changeset 5576:2bc609a4b516
SPDY: fixed reversed priority order in window waiting queue.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 12 Feb 2014 21:02:29 +0400 |
parents | d15822784cf9 |
children | bfe536716dbf |
files | src/http/ngx_http_spdy.h src/http/ngx_http_spdy_filter_module.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_spdy.h Tue Feb 11 21:54:42 2014 -0800 +++ b/src/http/ngx_http_spdy.h Wed Feb 12 21:02:29 2014 +0400 @@ -174,6 +174,9 @@ for (out = &sc->last_out; *out; out = &(*out)->next) { + /* + * NB: higher values represent lower priorities. + */ if (frame->priority >= (*out)->priority) { break; }
--- a/src/http/ngx_http_spdy_filter_module.c Tue Feb 11 21:54:42 2014 -0800 +++ b/src/http/ngx_http_spdy_filter_module.c Wed Feb 12 21:02:29 2014 +0400 @@ -967,7 +967,10 @@ { s = ngx_queue_data(q, ngx_http_spdy_stream_t, queue); - if (s->priority >= stream->priority) { + /* + * NB: higher values represent lower priorities. + */ + if (stream->priority >= s->priority) { break; } }