SPDY: fixed reversed priority order in window waiting queue.

This commit is contained in:
Valentin Bartenev 2014-02-12 21:02:29 +04:00
parent 60d508ceb9
commit b20af091b7
2 changed files with 7 additions and 1 deletions

View File

@ -174,6 +174,9 @@ ngx_http_spdy_queue_frame(ngx_http_spdy_connection_t *sc,
for (out = &sc->last_out; *out; out = &(*out)->next)
{
/*
* NB: higher values represent lower priorities.
*/
if (frame->priority >= (*out)->priority) {
break;
}

View File

@ -967,7 +967,10 @@ ngx_http_spdy_waiting_queue(ngx_http_spdy_connection_t *sc,
{
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;
}
}