Skip to content

Issues in http2 stream idle timeoutsΒ #15386

Description

@hypnoce

Jetty version(s)
Jetty 12.1.x

Jetty Environment
Jetty core http2

HTTP version
HTTP2

Java version/vendor (use: java -version)
openjdk version "25.0.1" 2025-10-21 LTS
OpenJDK Runtime Environment Corretto-25.0.1.8.1 (build 25.0.1+8-LTS)
OpenJDK 64-Bit Server VM Corretto-25.0.1.8.1 (build 25.0.1+8-LTS, mixed mode, sharing)

OS type/version
Darwin macOS 26.5.2

Description
Disclaimer: this report was 100% human generated. The analysis was 100% human.

There seems to be a race condition and potentially a bug in the way idle timeout on http2 streams is handled.

The first issue is a race condition:

Second issue: idle timeout called twice on the same stream. Here are the steps:

How to reproduce?
See hypnoce@08bf130

Let me know if this issues needs more clarification. The 2 provided tests can help.

Activity

  1. added
    BugFor general bugs on Jetty side
    on Jul 8, 2026
  2. moved this to πŸ— In progress in FROZEN Jetty 12.1.13on Aug 24, 2026
  3. lorban commented on Aug 24, 2026

    @lorban
    Contributor

    @hypnoce sorry for the delay getting back to you.

    About the first issue, this is indeed a bug and the test you provided elegantly reproduces it. I've fixed it here so you can try out the fix yourself if you wish. If you did, we'd be glad if you could post your feedback here. Please keep in mind that this same bug may affect other places (almost certainly H3, possibly other things too) so the PR currently is incomplete although H2 should be sorted.

    About the second issue, I'm not sure this is a problem at all, and even so, your test does not reproduce it as it passes without any modification. Have I missed something?

    Thanks!

  4. moved this to πŸ— In progress in FROZEN Jetty 12.0.39on Aug 31, 2026
  5. moved this from πŸ— In progress to πŸ‘€ In review in FROZEN Jetty 12.1.13on Aug 31, 2026
  6. 7 remaining items

  7. moved this to πŸ— In progress in Jetty 12.1.14 FROZENon Sep 1, 2026
  8. moved this to πŸ— In progress in Jetty 12.0.40 FROZENon Sep 1, 2026
  9. moved this from πŸ— In progress to βœ… Done in Jetty 12.1.14 FROZENon Sep 24, 2026
  10. moved this from πŸ— In progress to βœ… Done in Jetty 12.0.40 FROZENon Sep 24, 2026
  11. linked a pull request that will close this issue12.0.x: Fix idle timeout rescheduling #15855on Sep 24, 2026
  12. lorban commented on Sep 24, 2026

    @lorban
    Contributor

    Needs to be backported to 12.0.x before it can be closed.

  13. reopened this on Sep 24, 2026
  14. moved this from βœ… Done to πŸ— In progress in Jetty 12.0.40 FROZENon Sep 24, 2026
  15. moved this from πŸ— In progress to βœ… Done in Jetty 12.0.40 FROZENon Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugFor general bugs on Jetty side

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions