Skip to content

Releasing memory in ZERO_COPY mode. #1093

Description

@german-komarov-dev

I want to ask question here as there is the similar question in StackOverFlow which is not answered (https://stackoverflow.com/questions/67898403/using-rsocket-payloaddecoder-zero-copy-correctly).

So my question is when I use .payloadDecoder(PayloadDecoder.ZERO_COPY) where and how do I need to release payload? As I see in the source code the DefaultPayload the "release" method does nothing just return false. So I want to use ZERO_COPY feature but I didn't find in the Internet any information where and how to free memory. So I would be very grateful for explanation from this library authors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions