diff options
author | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2014-02-04 14:06:23 +0900 |
---|---|---|
committer | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2014-02-04 14:06:23 +0900 |
commit | 38a9a8968de3f762ff91e10bce8f122020a35637 (patch) | |
tree | 393deedcb9311141de17ccd5d02e6c9808e196e9 /src | |
parent | 087c7a6e3101d6257ba4ffd69542dcc1f37ba780 (diff) | |
download | nginx-38a9a8968de3f762ff91e10bce8f122020a35637.tar.gz nginx-38a9a8968de3f762ff91e10bce8f122020a35637.zip |
SPDY: fixed parsing of the priority field.
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_spdy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_spdy.c b/src/http/ngx_http_spdy.c index 957ff6f37..20755f490 100644 --- a/src/http/ngx_http_spdy.c +++ b/src/http/ngx_http_spdy.c @@ -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; |