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

Method ack

java/org/apache/coyote/http11/Http11Processor.java:1250–1267  ·  view source on GitHub ↗
(ContinueResponseTiming continueResponseTiming)

Source from the content-addressed store, hash-verified

1248
1249
1250 @Override
1251 protected final void ack(ContinueResponseTiming continueResponseTiming) {
1252 // Only try and send the ACK for ALWAYS or if the timing of the request
1253 // to send the ACK matches the current configuration.
1254 if (continueResponseTiming == ContinueResponseTiming.ALWAYS ||
1255 continueResponseTiming == protocol.getContinueResponseTimingInternal()) {
1256 // Acknowledge request
1257 // Send a 100 status back if it makes sense (response not committed
1258 // yet, and client specified an expectation for 100-continue)
1259 if (!response.isCommitted() && request.hasExpectation()) {
1260 try {
1261 outputBuffer.sendAck();
1262 } catch (IOException ioe) {
1263 setErrorState(ErrorState.CLOSE_CONNECTION_NOW, ioe);
1264 }
1265 }
1266 }
1267 }
1268
1269
1270 @Override

Callers 1

cloneRequestMethod · 0.95

Calls 5

hasExpectationMethod · 0.80
isCommittedMethod · 0.65
sendAckMethod · 0.45
setErrorStateMethod · 0.45

Tested by

no test coverage detected