comparison src/http/ngx_http_spdy_filter_module.c @ 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 39d7eef2e332
children b948f9c73111
comparison
equal deleted inserted replaced
5575:d15822784cf9 5576:2bc609a4b516
965 q != ngx_queue_sentinel(&sc->waiting); 965 q != ngx_queue_sentinel(&sc->waiting);
966 q = ngx_queue_prev(q)) 966 q = ngx_queue_prev(q))
967 { 967 {
968 s = ngx_queue_data(q, ngx_http_spdy_stream_t, queue); 968 s = ngx_queue_data(q, ngx_http_spdy_stream_t, queue);
969 969
970 if (s->priority >= stream->priority) { 970 /*
971 * NB: higher values represent lower priorities.
972 */
973 if (stream->priority >= s->priority) {
971 break; 974 break;
972 } 975 }
973 } 976 }
974 977
975 ngx_queue_insert_after(q, &stream->queue); 978 ngx_queue_insert_after(q, &stream->queue);