Skip to content

Jetty ConnectionLimit feature is not working #39050

@okohub

Description

@okohub

Affects: 3.2.1

Jetty ConnectionLimit feature is introduced via

server.jetty.max-connections in #35899

However, this ConnectionLimit is not working properly due to problem that introduced in this issue #30565

If Spring Boot decided to give first-class support for this, I think we need to find a proper solution.

As a shortcut from #30565, instead of supported prop, this works like a charm.

@Bean
public JettyServerCustomizer connectorsConnectionLimit() {
    return server -> server.addBean(new ConnectionLimit(1, server.getConnectors()));
}

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions