mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 10:19:00 +08:00
HTTP/3: adjusted control stream parsing.
7.2.1: If a DATA frame is received on a control stream, the recipient MUST respond with a connection error of type H3_FRAME_UNEXPECTED; 7.2.2: If a HEADERS frame is received on a control stream, the recipient MUST respond with a connection error (Section 8) of type H3_FRAME_UNEXPECTED.
This commit is contained in:
parent
013880bbda
commit
a8acca865b
@ -1069,6 +1069,10 @@ ngx_http_v3_parse_control(ngx_connection_t *c, void *data, u_char ch)
|
|||||||
st->state = sw_max_push_id;
|
st->state = sw_max_push_id;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case NGX_HTTP_V3_FRAME_DATA:
|
||||||
|
case NGX_HTTP_V3_FRAME_HEADERS:
|
||||||
|
return NGX_HTTP_V3_ERR_FRAME_UNEXPECTED;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
|
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
|
||||||
"http3 parse skip unknown frame");
|
"http3 parse skip unknown frame");
|
||||||
|
Loading…
Reference in New Issue
Block a user