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

Issue #4376 Async Content Complete #4377

Merged
merged 5 commits into from
Dec 2, 2019

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Nov 28, 2019

Added test harness to reproduce unready completing write for #4376
Fixed test by not closing output prior to becoming READY

Signed-off-by: Greg Wilkins [email protected]

Added test harness to reproduce unready completing write.
Fixed test by not closing output prior to becoming READY

Signed-off-by: Greg Wilkins <[email protected]>
ERROR state still needs to be closed!

Signed-off-by: Greg Wilkins <[email protected]>
close after last blocking write

Signed-off-by: Greg Wilkins <[email protected]>
If completion has to do a flush, then we need a call to closed to
avoid leaking buffers.

Signed-off-by: Greg Wilkins <[email protected]>
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.

Other than formatting, looks good to me.

{
AsyncContext context = request.startAsync();
ServletOutputStream out = response.getOutputStream();
out.setWriteListener(new WriteListener() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Brace at end of line. You are being assimilated.
This whole file needs a formatting pass.

Reformat

Signed-off-by: Greg Wilkins <[email protected]>
@gregw gregw merged commit 85cda88 into jetty-9.4.x Dec 2, 2019
@gregw gregw deleted the jetty-9.4.x-4376-asynccontentcomplete branch December 2, 2019 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Sponsored This issue affects a user with a commercial support agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants