|
|
@ -28,6 +28,7 @@ import java.util.Collections;
|
|
|
|
import java.util.EventListener;
|
|
|
|
import java.util.EventListener;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Set;
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.ServletContainerInitializer;
|
|
|
|
import javax.servlet.ServletContainerInitializer;
|
|
|
|
import javax.servlet.ServletContext;
|
|
|
|
import javax.servlet.ServletContext;
|
|
|
@ -652,10 +653,14 @@ public class UndertowServletWebServerFactory extends AbstractServletWebServerFac
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
this.accessLogReceiver.close();
|
|
|
|
this.accessLogReceiver.close();
|
|
|
|
this.worker.shutdown();
|
|
|
|
this.worker.shutdown();
|
|
|
|
|
|
|
|
this.worker.awaitTermination(30, TimeUnit.SECONDS);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (IOException ex) {
|
|
|
|
catch (IOException ex) {
|
|
|
|
throw new IllegalStateException(ex);
|
|
|
|
throw new IllegalStateException(ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (InterruptedException ex) {
|
|
|
|
|
|
|
|
Thread.currentThread().interrupt();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|