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

Issue #4323 Ensure QoSFilter handles IllegalStateException #4372

Conversation

janbartel
Copy link
Contributor

Issue #4323

Ensure that an IllegalStateException thrown by an async context that is being resumed after being suspended is caught, resulting in the loop to find a request to resume continuing.

Also move the release of the semaphore to higher in the handling code to ensure that the release always occurs, regardless of subsequent failures.

Also, to simplify the handling in doFilter, do not do a re-dispatch on an async context that had failed with onTimeout: instead, send an error response directly from the QoSAsyncListener.onTimeout() method.

@janbartel janbartel requested review from gregw and sbordet November 27, 2019 05:33
Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@janbartel janbartel merged commit db9ad2f into jetty-9.4.x Dec 3, 2019
@janbartel janbartel deleted the jetty-9.4.x-4323-qosfilter-handle-illegalstateexception branch December 3, 2019 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants