jersey
  1. jersey
  2. JERSEY-1760

Support outbound entity buffering to compute Content-length (ctnd.)

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-rc1, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      DEMO: Uncomment code that tests content-length values in tests (core-server:HeadTest, e2e:ContentLengthTest).

      With MBW.getSize() ignored in JAX-RS 2.0, we may want to implement a way that would let us compute the Content-Length value for messages of up to certain size. We could do this by defining a configurable-size buffer for outbound entities that would try to buffer whole entity and compute the actual Content-Length value that would be then set in the headers before flushing the buffered entity. Should the buffer overrun, it would resume to serializing the entity without computing the C-L value.

      add client side request tests

        Issue Links

          Activity

          Hide
          Miroslav Fuksa added a comment -

          merged to master

          Show
          Miroslav Fuksa added a comment - merged to master

            People

            • Assignee:
              Miroslav Fuksa
              Reporter:
              Marek Potociar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 22 hours
                22h