MCPcopy Create free account
hub / github.com/apache/tomcat / ack

Method ack

java/org/apache/coyote/http2/StreamProcessor.java:277–291  ·  view source on GitHub ↗
(ContinueResponseTiming continueResponseTiming)

Source from the content-addressed store, hash-verified

275
276
277 @Override
278 protected final void ack(ContinueResponseTiming continueResponseTiming) {
279 // Only try and send the ACK for ALWAYS or if the timing of the request
280 // to send the ACK matches the current configuration.
281 if (continueResponseTiming == ContinueResponseTiming.ALWAYS ||
282 continueResponseTiming == handler.getProtocol().getContinueResponseTimingInternal()) {
283 if (!response.isCommitted() && request.hasExpectation()) {
284 try {
285 stream.writeAck();
286 } catch (IOException ioe) {
287 setErrorState(ErrorState.CLOSE_CONNECTION_NOW, ioe);
288 }
289 }
290 }
291 }
292
293
294 @Override

Callers 2

settingsEndMethod · 0.45
settingsEndMethod · 0.45

Calls 6

hasExpectationMethod · 0.80
writeAckMethod · 0.80
getProtocolMethod · 0.65
isCommittedMethod · 0.65
setErrorStateMethod · 0.45

Tested by

no test coverage detected