MCPcopy Create free account
hub / github.com/apache/trafficserver / http2_frame_header_is_valid

Function http2_frame_header_is_valid

src/proxy/http2/HTTP2.cc:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119bool
120http2_frame_header_is_valid(const Http2FrameHeader &hdr, unsigned /* max_frame_size ATS_UNUSED */)
121{
122 // 6.1 If a DATA frame is received whose stream identifier field is 0x0, the recipient MUST
123 // respond with a connection error (Section 5.4.1) of type PROTOCOL_ERROR.
124 if (hdr.type == HTTP2_FRAME_TYPE_DATA && hdr.streamid == 0) {
125 return false;
126 }
127
128 return true;
129}
130
131bool
132http2_settings_parameter_is_valid(const Http2SettingsParameter &param)

Callers 1

do_start_frame_readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected