-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 #6227 Async timeout dispatch race #6228
Conversation
Only allow the thread calling onTimeout to call dispatch and complete once timeout has expired. Signed-off-by: Greg Wilkins <gregw@webtide.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks right.
However, I think that in sendError()
there should be checks similar to what has been added to dispatch()
and complete()
.
I think these are the only 3 methods that can be called from an async listener, right?
jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelState.java
Show resolved
Hide resolved
Do we want to fix the QoSFilter to set |
See issue #6227 for link to reproduction projects. I was able to test this branch, and the onTimeout WARNings are no longer happening.
Is this one we can squelch too? |
I'm not so sure about More over, this change gives precedence to a |
squelch exception Signed-off-by: Greg Wilkins <gregw@webtide.com>
@joakime squelched |
Fix #6227 Only allow the thread calling onTimeout to call dispatch and complete once timeout has expired.
Signed-off-by: Greg Wilkins gregw@webtide.com