MCPcopy Index your code
hub / github.com/apache/tomcat / readGoawayFrame

Method readGoawayFrame

java/org/apache/coyote/http2/Http2Parser.java:403–418  ·  view source on GitHub ↗
(int payloadSize, ByteBuffer buffer)

Source from the content-addressed store, hash-verified

401
402
403 protected void readGoawayFrame(int payloadSize, ByteBuffer buffer) throws IOException {
404 byte[] payload = new byte[payloadSize];
405 if (buffer == null) {
406 input.fill(true, payload);
407 } else {
408 buffer.get(payload);
409 }
410
411 int lastStreamId = ByteUtil.get31Bits(payload, 0);
412 long errorCode = ByteUtil.getFourBytes(payload, 4);
413 String debugData = null;
414 if (payloadSize > 8) {
415 debugData = new String(payload, 8, payloadSize - 8, StandardCharsets.UTF_8);
416 }
417 output.goaway(lastStreamId, errorCode, debugData);
418 }
419
420
421 protected void readWindowUpdateFrame(int streamId, ByteBuffer buffer) throws Http2Exception, IOException {

Callers 2

readFrameMethod · 0.95
completedMethod · 0.80

Calls 5

get31BitsMethod · 0.95
getFourBytesMethod · 0.95
fillMethod · 0.65
getMethod · 0.65
goawayMethod · 0.65

Tested by

no test coverage detected