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

Refine HttpChannel.Listener #9872

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Jun 5, 2023

addendum to #9754
better comments
split write into two cheaper events

better comments
split write into two cheaper events
Only slice the buffer if a non default listener
Used a boolean instead of a constant MethodHandle
@gregw gregw requested a review from joakime June 5, 2023 16:04
Comment on lines +134 to +135
* Invoked just after the HTTP request line and headers have been parsed
* (i.e. from within the call to {@link HttpChannel#onRequest(MetaData.Request)}).
Copy link
Contributor

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.
Copy link
Contributor

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.

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.

Partial review, but we have discussed this online.

@gregw gregw merged commit 1107410 into fix/12.0.x/restore-httpchannel-listener Jun 6, 2023
@gregw gregw deleted the fix/12.0.x/restore-httpchannel-listener-alt branch June 6, 2023 15:45
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.

3 participants