rsocket-java icon indicating copy to clipboard operation
rsocket-java copied to clipboard

Releasing memory in ZERO_COPY mode.

Open german-komarov-dev opened this issue 1 year ago • 0 comments

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.

german-komarov-dev avatar Jul 13 '23 13:07 german-komarov-dev