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

Method receivedEndOfStream

java/org/apache/coyote/http2/Stream.java:749–758  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

747
748
749 final void receivedEndOfStream() throws Http2Exception {
750 if (isContentLengthInconsistent()) {
751 throw new StreamException(
752 sm.getString("stream.header.contentLength", getConnectionId(), getIdAsString(),
753 Long.valueOf(coyoteRequest.getContentLengthLong()), Long.valueOf(contentLengthReceived)),
754 Http2Error.PROTOCOL_ERROR, getIdAsInt());
755 }
756 state.receivedEndOfStream();
757 inputBuffer.notifyEof();
758 }
759
760
761 final boolean isContentLengthInconsistent() {

Callers

nothing calls this directly

Calls 9

getConnectionIdMethod · 0.95
getIdAsStringMethod · 0.80
getIdAsIntMethod · 0.80
getStringMethod · 0.65
getContentLengthLongMethod · 0.65
receivedEndOfStreamMethod · 0.65
valueOfMethod · 0.45
notifyEofMethod · 0.45

Tested by

no test coverage detected