Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #12313 - Jetty 12 ee9/ee10 doesn't invoke callbacks when h2 client sends RST_STREAM. #12370

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Oct 10, 2024

  • Fixed invocation of AsyncListener.onError(), now called even if the response is already committed, in both EE9 and EE10.
  • Reworked EE9 HttpChannel state machine in case of failures to be like EE10's. In particular, calling abort now is a state change, rather than a failure of the Handler callback. In this way, the handle() loop continues, enters case TERMINATED, and the callback is completed in onCompleted().
  • Fixed EE9 handling of idle timeout in HttpChannel.onRequest(), that was missing.

…ent sends RST_STREAM.

* Fixed invocation of AsyncListener.onError(), now called even if the response is already committed, in both EE9 and EE10.
* Reworked EE9 HttpChannel state machine in case of failures to be like EE10's.
  In particular, calling abort now is a state change, rather than a failure of the Handler callback.
  In this way, the handle() loop continues, enters case TERMINATED, and the callback is completed in onCompleted().
* Fixed EE9 handling of idle timeout in HttpChannel.onRequest(), that was missing.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
…ent sends RST_STREAM.

* Removed unnecessary calls to EE9's `HttpChannel.abort()`.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
…ent sends RST_STREAM.

* Do not recycle EE9 HttpChannel for WebSocket requests.
* Simplified sendError() error handling.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@wendigo
Copy link

wendigo commented Oct 23, 2024

Is there a chance this will land in 12.0.15?

@lorban
Copy link
Contributor

lorban commented Oct 23, 2024

@wendigo it's very likely that this PR gets merged before 12.0.15 gets released.

@lorban lorban merged commit 8824374 into jetty-12.0.x Oct 24, 2024
10 checks passed
@lorban lorban deleted the fix/jetty-12.0.x/12313/async-onerror-on-h2-reset branch October 24, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Jetty 12 ee9/ee10 doesn't invoke callbacks when h2 client sends RST_STREAM
3 participants