comparison src/http/v3/ngx_http_v3_parse.c @ 8422:12f18e0bca09 quic

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.
author Vladimir Homutov <vl@nginx.com>
date Thu, 22 Apr 2021 13:49:18 +0300
parents ae2e68f206f9
children 687445803d0f
comparison
equal deleted inserted replaced
8421:225e9f1dfe7c 8422:12f18e0bca09
1067 1067
1068 case NGX_HTTP_V3_FRAME_MAX_PUSH_ID: 1068 case NGX_HTTP_V3_FRAME_MAX_PUSH_ID:
1069 st->state = sw_max_push_id; 1069 st->state = sw_max_push_id;
1070 break; 1070 break;
1071 1071
1072 case NGX_HTTP_V3_FRAME_DATA:
1073 case NGX_HTTP_V3_FRAME_HEADERS:
1074 return NGX_HTTP_V3_ERR_FRAME_UNEXPECTED;
1075
1072 default: 1076 default:
1073 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, 1077 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0,
1074 "http3 parse skip unknown frame"); 1078 "http3 parse skip unknown frame");
1075 st->state = sw_skip; 1079 st->state = sw_skip;
1076 } 1080 }