Socket socket = null;
try {
socket = serverSocket.accept();
} catch (IOException e) {
if (!stopped) {
Logger logger = container.getLogger();
if (logger != null)
logger.log(threadName + ".accept", e);
}
break;
}
// Hand this socket off to an appropriate processor
HttpProcessor processor = createProcessor();
if (processor == null) {
try {
Logger logger = container.getLogger();
if (logger != null)
logger.log(threadName +
"select: No processor available");
socket.close();
} catch (IOException e) {
;
}