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

Fixes #6105 - HttpConnection.getBytesIn() incorrect for requests with chunked content #6145

Merged
merged 1 commit into from Apr 10, 2021

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Apr 8, 2021

… chunked content

Moved recording of bytes to fillRequestBuffer(),
so they are accounted also for async reads.
Added test case.
Fixed test that was too strictly comparing HttpConnection.bytesIn,
that now report a correct, but larger value.

Signed-off-by: Simone Bordet simone.bordet@gmail.com
(cherry picked from commit aed20ab)

… chunked content

Moved recording of bytes to fillRequestBuffer(),
so they are accounted also for async reads.
Added test case.
Fixed test that was too strictly comparing HttpConnection.bytesIn,
that now report a correct, but larger value.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
(cherry picked from commit aed20ab)
@sbordet sbordet requested a review from gregw April 8, 2021 10:26
@sbordet
Copy link
Contributor Author

sbordet commented Apr 8, 2021

@gregw forward port of #6108.

@joakime joakime changed the title Fixes #6105 - HttpConnection.getBytesIn() incorrect for requests with… Fixes #6105 - HttpConnection.getBytesIn() incorrect for requests with chunked content Apr 8, 2021
@sbordet sbordet merged commit e163b00 into jetty-10.0.x Apr 10, 2021
@sbordet sbordet deleted the jetty-10.0.x-6105-httpconnection_bytes_in branch April 10, 2021 16:51
@sbordet sbordet added this to In progress in Jetty 10.0.3/11.0.3 via automation Apr 10, 2021
@sbordet sbordet moved this from In progress to Done in Jetty 10.0.3/11.0.3 Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

HttpConnection.getBytesIn() incorrect for requests with chunked content
2 participants