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

Function http2_parse_goaway

src/proxy/http2/HTTP2.cc:358–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358bool
359http2_parse_goaway(IOVec iov, Http2Goaway &goaway)
360{
361 byte_pointer ptr(iov.iov_base);
362 byte_addressable_value<uint32_t> sid;
363 byte_addressable_value<uint32_t> ec;
364
365 memcpy_and_advance(sid.bytes, ptr);
366 memcpy_and_advance(ec.bytes, ptr);
367
368 goaway.last_streamid = ntohl(sid.value);
369 goaway.error_code = static_cast<Http2ErrorCode>(ntohl(ec.value));
370 return true;
371}
372
373bool
374http2_parse_window_update(IOVec iov, uint32_t &size)

Callers 1

rcv_goaway_frameMethod · 0.85

Calls 1

memcpy_and_advanceFunction · 0.85

Tested by

no test coverage detected