(String msg, Http2Error error)
| 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 { |
no test coverage detected