Mercurial > hg > nginx
comparison src/http/ngx_http_spdy.c @ 5553:60c4179f76ad
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.
author | Shigeki Ohtsu <ohtsu@iij.ad.jp> |
---|---|
date | Tue, 04 Feb 2014 14:06:23 +0900 |
parents | 39d7eef2e332 |
children | cff36d2d7fe6 |
comparison
equal
deleted
inserted
replaced
5552:02ec169f683f | 5553:60c4179f76ad |
---|---|
900 } | 900 } |
901 | 901 |
902 sc->length -= NGX_SPDY_SYN_STREAM_SIZE; | 902 sc->length -= NGX_SPDY_SYN_STREAM_SIZE; |
903 | 903 |
904 sid = ngx_spdy_frame_parse_sid(pos); | 904 sid = ngx_spdy_frame_parse_sid(pos); |
905 prio = pos[8] >> 6; | 905 prio = pos[8] >> 5; |
906 | 906 |
907 pos += NGX_SPDY_SYN_STREAM_SIZE; | 907 pos += NGX_SPDY_SYN_STREAM_SIZE; |
908 | 908 |
909 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, sc->connection->log, 0, | 909 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, sc->connection->log, 0, |
910 "spdy SYN_STREAM frame sid:%ui prio:%ui", sid, prio); | 910 "spdy SYN_STREAM frame sid:%ui prio:%ui", sid, prio); |