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

Function http2_write_goaway

src/proxy/http2/HTTP2.cc:265–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool
266http2_write_goaway(const Http2Goaway &goaway, IOVec iov)
267{
268 byte_pointer ptr(iov.iov_base);
269
270 if (unlikely(iov.iov_len < HTTP2_GOAWAY_LEN)) {
271 return false;
272 }
273
274 write_and_advance(ptr, goaway.last_streamid);
275 write_and_advance(ptr, static_cast<uint32_t>(goaway.error_code));
276
277 return true;
278}
279
280bool
281http2_write_window_update(const uint32_t new_size, const IOVec &iov)

Callers 1

write_toMethod · 0.85

Calls 1

write_and_advanceFunction · 0.85

Tested by

no test coverage detected