}
// Finish the handling of the request
- if (!comet && !isAsync()) {
- // If we know we are closing the connection, don't drain input.
- // This way uploading a 100GB file doesn't tie up the thread
- // if the servlet has rejected it.
- if(error)
+ rp.setStage(org.apache.coyote.Constants.STAGE_ENDINPUT);
+
+ if (!isAsync() && !comet) {
+ if (error) {
+ // If we know we are closing the connection, don't drain
+ // input. This way uploading a 100GB file doesn't tie up the
+ // thread if the servlet has rejected it.
inputBuffer.setSwallowInput(false);
+ }
endRequest();
}
+ rp.setStage(org.apache.coyote.Constants.STAGE_ENDOUTPUT);
+
// If there was an error, make sure the request is counted as
// and error, and update the statistics counter
if (error) {
}
rp.setStage(org.apache.coyote.Constants.STAGE_KEEPALIVE);
-
}
rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);
}
// Finish the handling of the request
- if (!comet && !isAsync()) {
- // If we know we are closing the connection, don't drain input.
- // This way uploading a 100GB file doesn't tie up the thread
- // if the servlet has rejected it.
- if(error)
+ rp.setStage(org.apache.coyote.Constants.STAGE_ENDINPUT);
+
+ if (!isAsync() && !comet) {
+ if(error) {
+ // If we know we are closing the connection, don't drain
+ // input. This way uploading a 100GB file doesn't tie up the
+ // thread if the servlet has rejected it.
inputBuffer.setSwallowInput(false);
+ }
endRequest();
}
+ rp.setStage(org.apache.coyote.Constants.STAGE_ENDOUTPUT);
+
// If there was an error, make sure the request is counted as
// and error, and update the statistics counter
if (error) {
break;
}
-
rp.setStage(org.apache.coyote.Constants.STAGE_KEEPALIVE);
-
- }//while
+ }
rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);
if (error || endpoint.isPaused()) {
// Finish the handling of the request
rp.setStage(org.apache.coyote.Constants.STAGE_ENDINPUT);
-
- if(error && !isAsync()) {
- // If we know we are closing the connection, don't drain
- // input. This way uploading a 100GB file doesn't tie up the
- // thread if the servlet has rejected it.
- inputBuffer.setSwallowInput(false);
- }
- if (!isAsync())
+ if(!isAsync() && !comet) {
+ if (error) {
+ // If we know we are closing the connection, don't drain
+ // input. This way uploading a 100GB file doesn't tie up the
+ // thread if the servlet has rejected it.
+ inputBuffer.setSwallowInput(false);
+ }
endRequest();
+ }
rp.setStage(org.apache.coyote.Constants.STAGE_ENDOUTPUT);
}
request.updateCounters();
- rp.setStage(org.apache.coyote.Constants.STAGE_KEEPALIVE);
-
- // Don't reset the param - we'll see it as ended. Next request
- // will reset it
- // thrA.setParam(null);
// Next request
if (!isAsync() || error) {
inputBuffer.nextRequest();
if (isAsync() || error || inputBuffer.lastValid == 0) {
break;
}
+
+ rp.setStage(org.apache.coyote.Constants.STAGE_KEEPALIVE);
}
rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);