]> git.kaiwu.me - nginx.git/commitdiff
SPDY: fixed parsing of the priority field.
authorShigeki Ohtsu <ohtsu@iij.ad.jp>
Tue, 4 Feb 2014 05:06:23 +0000 (14:06 +0900)
committerShigeki Ohtsu <ohtsu@iij.ad.jp>
Tue, 4 Feb 2014 05:06:23 +0000 (14:06 +0900)
The size of the priority field is increased by one bit in spdy/3,
and now it's a 3-bit field followed by 5 bits of unused space.
But a shift of these bits hasn't been adjusted in 39d7eef2e332
accordingly.

src/http/ngx_http_spdy.c

index 957ff6f3748dfca146c8b932e230a25ffa115f34..20755f490679837887fa71ed1c578bd2e003a4f0 100644 (file)
@@ -902,7 +902,7 @@ ngx_http_spdy_state_syn_stream(ngx_http_spdy_connection_t *sc, u_char *pos,
     sc->length -= NGX_SPDY_SYN_STREAM_SIZE;
 
     sid = ngx_spdy_frame_parse_sid(pos);
-    prio = pos[8] >> 6;
+    prio = pos[8] >> 5;
 
     pos += NGX_SPDY_SYN_STREAM_SIZE;