Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=3.5.5-SNAPSHOT
version=3.5.5
latestVersion=false
spring.build-type=oss

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,30 @@ public void stop() throws WebServerException {
notifyGracefulCallback(false);
}
try {
this.undertow.stop();
if (this.undertow != null) {
this.undertow.stop();
}
}
catch (Exception ex) {
throw new WebServerException("Unable to stop embedded Undertow", ex);
}
}
}

@Override
public void destroy() {
synchronized (this.monitor) {
try {
if (this.started && this.undertow != null) {
this.started = false;
this.undertow.stop();
}
for (Closeable closeable : this.closeables) {
closeable.close();
}
}
catch (Exception ex) {
throw new WebServerException("Unable to stop Undertow", ex);
throw new WebServerException("Unable to stop embedded Undertow", ex);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,18 +255,6 @@ protected void portClashOfSecondaryConnectorResultsInPortInUseException() throws
super.portClashOfSecondaryConnectorResultsInPortInUseException();
}

@Test
@Override
@Disabled("Restart after stop is not supported with Undertow")
protected void restartAfterStop() {
}

@Test
@Override
@Disabled("Undertow's architecture prevents separating stop and destroy")
protected void servletContextListenerContextDestroyedIsNotCalledWhenContainerIsStopped() {
}

private void testAccessLog(String prefix, String suffix, String expectedFile)
throws IOException, URISyntaxException {
UndertowServletWebServerFactory factory = getFactory();
Expand Down