# HG changeset patch # User Valentin Bartenev # Date 1392224549 -14400 # Node ID 2bc609a4b516bde282eea3ce79d91b36becb91f7 # Parent d15822784cf98dc1ee8efd4a4dfea22bda78ac62 SPDY: fixed reversed priority order in window waiting queue. diff --git a/src/http/ngx_http_spdy.h b/src/http/ngx_http_spdy.h --- a/src/http/ngx_http_spdy.h +++ b/src/http/ngx_http_spdy.h @@ -174,6 +174,9 @@ ngx_http_spdy_queue_frame(ngx_http_spdy_ for (out = &sc->last_out; *out; out = &(*out)->next) { + /* + * NB: higher values represent lower priorities. + */ if (frame->priority >= (*out)->priority) { break; } diff --git a/src/http/ngx_http_spdy_filter_module.c b/src/http/ngx_http_spdy_filter_module.c --- a/src/http/ngx_http_spdy_filter_module.c +++ b/src/http/ngx_http_spdy_filter_module.c @@ -967,7 +967,10 @@ ngx_http_spdy_waiting_queue(ngx_http_spd { 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; } }