Visitar URL original
HttpConnection.getBytesIn() incorrect for requests with chunked content · Issue #6105 · jetty/jetty.project · GitHub
Skip to content

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

Description

@bjorncs

Jetty version
9.4.38.v20210224

Java version
11.0.7+10

OS type/version
MacOS 10.15.7

Description
HttpConnection.bytesIn is only aggregated when fillRequestBuffer() is called from onFillable(), not from fillAndParseForContent(). The result is that HttpConnection.getBytesIn() reports a value lower than than the actual number of bytes filled. I have been able to reproduce this for POST requests using chunked encoding.

Activity

  1. sbordet commented on Mar 25, 2021

    @sbordet
    Contributor

    @bjorncs thanks for the report, we'll work on the Jetty issue.
    How urgent is this for you?

  2. bjorncs commented on Mar 26, 2021

    @bjorncs
    ContributorAuthor

    It's not a blocker - we only use the value for logging purposes at the moment.

  3. self-assigned this
    on Mar 26, 2021
  4. added 2 commits that reference this issue on Mar 26, 2021
    5f0bd97
    9e8309a
  5. sbordet commented on Mar 26, 2021

    @sbordet
    Contributor

    @bjorncs can you try the code in PR #6108?

  6. added 2 commits that reference this issue on Apr 8, 2021
    aed20ab
    5ced37e
  7. joakime commented on Apr 8, 2021

    @joakime
    Contributor

    Closing, as PR #6108 was merged.

  8. added a commit that references this issue on Apr 10, 2021
    e163b00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions