Make stop behavior across various Web Server implementations consistent #44144
Labels
status: pending-design-work
Needs design work before any code can be developed
type: enhancement
A general enhancement
Milestone
Javadoc states:
I reviewed all
WebServer
implementations and identified some inconsistencies among them.In the case of
TomcatWebServer
, it consistently tries toremoveServiceConnectors
, andstop method can be invoked multiple times.
For
NettyWebServer
, if an error occurs, it silently catches the exception withoutthrowing a
WebServerException
. Additionally, subsequent calls tostop()
will have noeffect.
Similarly to Tomcat,
JettyWebServer
attempts to stop its connectors and allows the stopmethod to be invoked multiple times.
In contrast,
UndertowWebServer
makes the second call tostop()
ineffective, preventing any retries to stop theWebServer in case of failure.
The text was updated successfully, but these errors were encountered: