Skip to content

Comments

Jetty: apply shutdown idle timeout for graceful shutdown#49278

Open
l2yujw wants to merge 1 commit intospring-projects:mainfrom
l2yujw:fix/jetty-graceful-shutdown-idle-timeout
Open

Jetty: apply shutdown idle timeout for graceful shutdown#49278
l2yujw wants to merge 1 commit intospring-projects:mainfrom
l2yujw:fix/jetty-graceful-shutdown-idle-timeout

Conversation

@l2yujw
Copy link

@l2yujw l2yujw commented Feb 20, 2026

This PR moves the Jetty connector shutdown idle timeout configuration from a
test-only customizer into main code when graceful shutdown is enabled.

Rationale

The Jetty servlet web server tests currently set shutdownIdleTimeout via a
customizer and include a TODO to configure it in main code. Keeping this as a
test-only workaround can lead to inconsistent behavior for users relying on
graceful shutdown.

Changes

  • Apply shutdownIdleTimeout to Jetty ServerConnectors when Shutdown.GRACEFUL is enabled
  • Remove the test customizer and the related TODO

Testing

  • ./gradlew :module:spring-boot-jetty:test

Signed-off-by: l2yuPa <jeungwon28@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants