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

Fix #9169 refine idle timeout and failure #10418

Merged
merged 7 commits into from
Aug 29, 2023
Merged

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Aug 28, 2023

Fix #9169 Only fail request callback if a failure has not been otherwise notified. Slight optimisation for failing idle timeouts by avoiding double lock.

Only fail request callback if a failure has not been otherwise notified.
Slight optimization for failing idle timeouts by avoiding double lock.
@gregw gregw requested a review from sbordet August 28, 2023 01:03
Only fail request callback if a failure has not been otherwise notified.
Slight optimization for failing idle timeouts by avoiding double lock.
Copy link
Contributor

@lorban lorban left a comment

Choose a reason for hiding this comment

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

LGTM

@joakime joakime linked an issue Aug 28, 2023 that may be closed by this pull request
@joakime joakime added this to the 12.0.x milestone Aug 28, 2023
gregw added 3 commits August 29, 2023 08:35
Only fail request callback if a failure has not been otherwise notified.
Slight optimization for failing idle timeouts by avoiding double lock.
Always create a failure if failing the callback.
Only fail request callback if a failure has not been otherwise notified.
Slight optimization for failing idle timeouts by avoiding double lock.
Always create a failure if failing the callback.
@gregw gregw requested a review from joakime August 28, 2023 22:58
@gregw
Copy link
Contributor Author

gregw commented Aug 29, 2023

@sbordet please have a look at this first thing, as I think it is a contender to slip into 12.0.1

Copy link
Contributor

@sbordet sbordet left a comment

Choose a reason for hiding this comment

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

Just a nit.

Only fail request callback if a failure has not been otherwise notified.
Slight optimization for failing idle timeouts by avoiding double lock.
Always create a failure if failing the callback.
@gregw gregw merged commit d6a0226 into jetty-12.0.x Aug 29, 2023
@gregw gregw deleted the fix/12/9169/idletimeout branch August 29, 2023 10:44
lorban pushed a commit that referenced this pull request Aug 30, 2023
Only fail request callback if a failure has not been otherwise notified.
Slight optimisation for failing idle timeouts by avoiding double lock.
Always create a failure if failing the callback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Idle timeout is ignored if callback is not completed
5 participants