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

Jetty 10.0.x Fix #5605 Unblock non container Threads #5953

Merged
merged 38 commits into from
Feb 17, 2021

Conversation

lorban
Copy link
Contributor

@lorban lorban commented Feb 8, 2021

Candidate merge of #5936 into 10.0.x

gregw and others added 14 commits February 2, 2021 14:03
Ensure that HttpInput is always closed to EOF, EarlyEOF or Error, so that non container threads doing blocking reads
will not block forever, even if late.   Delay recycling of HttpInput until next request is received.
Ensure that HttpInput is always closed to EOF, EarlyEOF or Error, so that non container threads doing blocking reads
will not block forever, even if late.   Delay recycling of HttpInput until next request is received.
test and fixes for the write side.
test and fixes for the write side.
Don't consumeAll before upgrade
revert fillInterest cancellation and just abort connection instead.
tested for all transports
Simplification. Always abort on any pending read or write in completion.
Simplification. Always abort on any pending read or write in completion.
updates from review.
…threads' into jetty-10.0.x-5605-wakeup-blocked-threads
@lorban lorban force-pushed the jetty-10.0.x-5605-wakeup-blocked-threads branch from a992c03 to ea51c8d Compare February 9, 2021 08:12
@lorban lorban force-pushed the jetty-10.0.x-5605-wakeup-blocked-threads branch from ea51c8d to d297e9c Compare February 9, 2021 08:26
@lorban lorban marked this pull request as ready for review February 9, 2021 08:28
@lorban lorban requested a review from gregw February 9, 2021 08:28
@lorban lorban self-assigned this Feb 9, 2021
@lorban lorban linked an issue Feb 9, 2021 that may be closed by this pull request
@lorban lorban added the Bug For general bugs on Jetty side label Feb 9, 2021
@lorban lorban added this to the 10.0.x milestone Feb 9, 2021
@lorban lorban changed the title Jetty 10.0.x 5605 wakeup blocked threads Jetty 10.0.x Fix #5605 Unblock non container Threads Feb 9, 2021
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
@lorban lorban requested a review from gregw February 9, 2021 17:47
gregw and others added 15 commits February 10, 2021 15:35
refactored the complete method to consider unrecoverable API states no matter what the httpout state
actually is.  This avoid duplication of OPEN, CLOSING, CLOSED etc. handling.
Signed-off-by: Ludovic Orban <[email protected]>
…threads' into jetty-10.0.x-5605-wakeup-blocked-threads
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
…threads' into jetty-10.0.x-5605-wakeup-blocked-threads
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
@lorban lorban requested a review from gregw February 15, 2021 18:29
/**
* A semaphore that assumes working under {@link AsyncContentProducer#lock()} scope.
*/
class LockedSemaphore
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like a useful class. Surprised it is not already available as a common extension of Condition.

@lorban lorban merged commit 4cfe7b9 into jetty-10.0.x Feb 17, 2021
@lorban lorban deleted the jetty-10.0.x-5605-wakeup-blocked-threads branch February 17, 2021 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blocked IO Thread not woken
2 participants