Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Dokuka <oleh.dokuka@icloud.com>
  • Loading branch information
OlegDokuka committed Mar 28, 2023
1 parent f2fe455 commit 02d166b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rsocket-test/src/main/java/io/rsocket/test/TransportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,11 @@ public void sendErrorAndClose(RSocketErrorException e) {
public Flux<ByteBuf> receive() {
return duplexConnection
.receive()
.doOnTerminate(() -> logger.info("[" + this + "] Receive is done before PO"))
.subscribeOn(Schedulers.boundedElastic())
.doOnNext(ByteBuf::retain)
.publishOn(Schedulers.boundedElastic(), Integer.MAX_VALUE)
.doOnTerminate(() -> logger.info("[" + this + "] Receive is done after PO"))
.doOnDiscard(ReferenceCounted.class, ReferenceCountUtil::safeRelease)
.transform(
Operators.<ByteBuf, ByteBuf>lift(
Expand Down

0 comments on commit 02d166b

Please sign in to comment.