We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ca60b commit 02c1943Copy full SHA for 02c1943
rsocket-core/src/main/java/io/rsocket/resume/InMemoryResumableFramesStore.java
@@ -274,7 +274,7 @@ public void onNext(ByteBuf frame) {
274
275
final CoreSubscriber<? super ByteBuf> actual = this.actual;
276
if (state == 1) {
277
- actual.onNext(frame.retain());
+ actual.onNext(isResumable ? frame.retainedSlice() : frame);
278
} else if (!isResumable || state == 2) {
279
frame.release();
280
}
@@ -302,7 +302,7 @@ public void subscribe(CoreSubscriber<? super ByteBuf> actual) {
302
actual.onSubscribe(this);
303
synchronized (this) {
304
for (final ByteBuf frame : cachedFrames) {
305
+ actual.onNext(frame.retainedSlice());
306
307
308
0 commit comments