}
logger.info("Received connection from " + socket.getRemoteAddress());
// execute connection handler
final AgiConnectionHandler connectionHandler = new FastAgiConnectionHandler(getMappingStrategy(), socket, this.getAgiChannelFactory());
try
{
execute(connectionHandler);
}
catch (RejectedExecutionException e)
{
logger.warn("Execution was rejected by pool. Try to increase the pool size.");
// release resources like closing the socket if execution was rejected due to the pool size
connectionHandler.release();
}
}
logger.info("AgiServer shut down.");
}