mirror of
https://github.com/nginx/nginx.git
synced 2025-06-18 18:21:15 +08:00
SPDY: fixed reversed priority order in window waiting queue.
This commit is contained in:
parent
60d508ceb9
commit
b20af091b7
@ -174,6 +174,9 @@ ngx_http_spdy_queue_frame(ngx_http_spdy_connection_t *sc,
|
|||||||
|
|
||||||
for (out = &sc->last_out; *out; out = &(*out)->next)
|
for (out = &sc->last_out; *out; out = &(*out)->next)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* NB: higher values represent lower priorities.
|
||||||
|
*/
|
||||||
if (frame->priority >= (*out)->priority) {
|
if (frame->priority >= (*out)->priority) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user