listening = true;
while (listening) {
try {
Socket socket = listeningSocket.accept();
WebServerThread wst = new WebServerThread(socket);
wst.setContextHandler(contextHandler);
wst.setMaximumRequestLengthInBytes(maximumRequestLengthInBytes);
threadPool.execute(wst);
}
catch (IOException ex) {
if (listening) {