mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +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)
|
||||
{
|
||||
/*
|
||||
* NB: higher values represent lower priorities.
|
||||
*/
|
||||
if (frame->priority >= (*out)->priority) {
|
||||
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);
|
||||
|
||||
if (s->priority >= stream->priority) {
|
||||
/*
|
||||
* NB: higher values represent lower priorities.
|
||||
*/
|
||||
if (stream->priority >= s->priority) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user