Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8195823

Buffers given to response body subscribers should not contain unprocessed HTTP data

XMLWordPrintable

    • b41
    • Verified

        It has been observed that byte buffers passed to the response subscriber may contain unprocessed data in the area between the buffer's limit and its capacity. This can happen when:
          1) reading chunked HTTP/1.1 response data
          2) receiving HTTP/2 data frames for several streams

        It is problematic for many reasons, least of all is that the asString and buffering subscribers accumulate bytes, below a certain threshold, into given buffers ( so as to not necessarily consumer memory ). There could also be other, more serious, issues.

              chegar Chris Hegarty
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: