@Override
public SocketState event(SocketWrapper<Long> socket, SocketStatus status) {
- Http11AprProcessor result = connections.get(socket);
+ Http11AprProcessor processor = connections.get(socket);
SocketState state = SocketState.CLOSED;
- if (result != null) {
- if (result.comet) {
+ if (processor != null) {
+ if (processor.comet) {
// Call the appropriate event
try {
- state = result.event(status);
+ state = processor.event(status);
} catch (java.net.SocketException e) {
// SocketExceptions are normal
Http11AprProtocol.log.debug(sm.getString(
} finally {
if (state != SocketState.LONG) {
connections.remove(socket);
- recycledProcessors.offer(result);
+ recycledProcessors.offer(processor);
if (state == SocketState.OPEN) {
((AprEndpoint)proto.endpoint).getPoller().add(socket.getSocket().longValue());
}
((AprEndpoint)proto.endpoint).getCometPoller().add(socket.getSocket().longValue());
}
}
- } else if (result.isAsync()) {
+ } else if (processor.isAsync()) {
state = asyncDispatch(socket, status);
}
}