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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • proton-j-0.25.0
    • proton-j-0.26.0
    • proton-j
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: