-
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
Refine HttpChannel.Listener #9872
Refine HttpChannel.Listener #9872
Conversation
better comments split write into two cheaper events
Only slice the buffer if a non default listener
jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/HttpChannelListeners.java
Outdated
Show resolved
Hide resolved
Used a boolean instead of a constant MethodHandle
* Invoked just after the HTTP request line and headers have been parsed | ||
* (i.e. from within the call to {@link HttpChannel#onRequest(MetaData.Request)}). |
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.
Wrap with <p>
.
* </p> | ||
* | ||
* @param request the request object | ||
* @param request the request object. The {@code read()} and {@code demand(Runnable)} methods must not be called by the listener. |
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.
I think calling read()
and demand()
should not be a worry -- if called wrongly it's the user fault.
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.
Partial review, but we have discussed this online.
addendum to #9754
better comments
split write into two cheaper events