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

Method doStreamCancel

java/org/apache/coyote/http2/Stream.java:294–304  ·  view source on GitHub ↗
(String msg, Http2Error error)

Source from the content-addressed store, hash-verified

292
293
294 void doStreamCancel(String msg, Http2Error error) throws CloseNowException {
295 StreamException se = new StreamException(msg, error, getIdAsInt());
296 // Prevent the application making further writes
297 streamOutputBuffer.closed = true;
298 // Prevent Tomcat's error handling trying to write
299 coyoteResponse.setError();
300 coyoteResponse.setErrorReported();
301 // Trigger a reset once control returns to Tomcat
302 streamOutputBuffer.reset = se;
303 throw new CloseNowException(msg, se);
304 }
305
306
307 void waitForConnectionAllocation(long timeout) throws InterruptedException {

Callers 2

reserveWindowSizeMethod · 0.95
reserveWindowSizeMethod · 0.80

Calls 3

getIdAsIntMethod · 0.80
setErrorMethod · 0.45
setErrorReportedMethod · 0.45

Tested by

no test coverage detected