Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1767

allow the Transport to expose an output buffer that is not read-only

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: proton-j-0.25.0
    • Fix Version/s: proton-j-0.26.0
    • Component/s: proton-j
    • Labels:
      None

      Description

      In some cases the read-only output buffer exposed by TransportImpl by calling head() or getOutputBuffer() can lead to extra intermediate copies of the buffer based on the IO framework being used to transmit the bytes (such as current Netty releases).  This is due to the fact that the read-only buffer reports that it doesn't have a backing array so the frameworks try to work around this to optimize the transfer of bytes.  For uses who are aware of this and can ensure they never tamper with the buffer contents that aren't consumed we should let them choose to expose a writable duplicate of the output buffer.

        Attachments

          Activity

            People

            • Assignee:
              tabish Timothy A. Bish
              Reporter:
              tabish Timothy A. Bish
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: