Skip to content

Jetty does not fail to start when its thread pool is misconfigured #8917

@venkata6

Description

@venkata6

Dear Spring Boot maintainers,

I think I found a bug in the JettyWebSocketContainerCustomizer configuration

I wrongly configured jetty.threadPool.maxThreads to a value which is less than optimal which should throw an error and not started the server at all. But Spring Boot ignores the error from Jetty and starts the server.

Then when the request comes , TCP/IP connection succeeds but there is no response.

Initially I thought it is Jetty issue but when I run Jetty separately and configure the same values ./etc/jetty.xml , Jetty fails to start the server

So my conclusion is Spring Boot ignores the underlying Jetty exception and starts the server (which could cause serious consequences if one deploys the code where we don't have any control over number of cores)

More detailed in my original ticket here to Jetty team

jetty/jetty.project#1464 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions