Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1781

Message: write/read the payload last when marshalling

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 3.5
    • None
    • None

    Description

      When (un)marshalling a message, we process the fields in this order:

      1. Sender and receiver addresses
      2. Flags
      3. Payload
      4. Headers

      I'd like to change this to move processing of the payload to the end because

      • If payload refers to a different buffer (JGRP-1773), then we don't need to read the bytes, but currently have to skip N bytes to read the headers. If the payload was at the end, this wouldn't be needed
      • Once we use NIO.2 and gathering writes, we'd pass a couple of buffers to the socket write and therefore it's simpler if the payload is written last. Ditto for scattering reads.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: