CUSTOM,
RESET,
- START,
- STOP,
WEBAPP,
/**
/**
- * State flag.
- */
- protected boolean started = false;
-
-
- /**
* Error flag.
*/
protected boolean error = false;
boolean openSocket = true;
boolean keptAlive = false;
- while (started && !error && !endpoint.isPaused()) {
+ while (!error && !endpoint.isPaused()) {
// Parsing the request header
try {
error = true;
}
- } else if (actionCode == ActionCode.START) {
-
- started = true;
-
- } else if (actionCode == ActionCode.STOP) {
-
- started = false;
-
} else if (actionCode == ActionCode.REQ_SSL_ATTRIBUTE ) {
if (!certificates.isNull()) {
processor = createProcessor();
}
- processor.action(ActionCode.START, null);
-
if (processor.process(socket)) {
connections.put(Long.valueOf(socket), processor);
return SocketState.OPEN;
AjpAprProtocol.log.error
(sm.getString("ajpprotocol.proto.error"), e);
} finally {
- processor.action(ActionCode.STOP, null);
recycledProcessors.offer(processor);
}
return SocketState.CLOSED;
/**
- * State flag.
- */
- protected boolean started = false;
-
-
- /**
* Error flag.
*/
protected boolean error = false;
// Error flag
error = false;
- while (started && !error && !endpoint.isPaused()) {
+ while (!error && !endpoint.isPaused()) {
// Parsing the request header
try {
error = true;
}
- } else if (actionCode == ActionCode.START) {
-
- started = true;
-
- } else if (actionCode == ActionCode.STOP) {
-
- started = false;
-
} else if (actionCode == ActionCode.REQ_SSL_ATTRIBUTE ) {
if (!certificates.isNull()) {
if (processor == null) {
processor = createProcessor();
}
- processor.action(ActionCode.START, null);
SocketState state = socket.isAsync()?processor.asyncDispatch(status):processor.process(socket);
if (state == SocketState.LONG) {
AjpProtocol.log.error
(sm.getString("ajpprotocol.proto.error"), e);
} finally {
- processor.action(ActionCode.STOP, null);
recycledProcessors.offer(processor);
}
return SocketState.CLOSED;