Skip to content

Commit

Permalink
Now exercising ZERO_COPY on the client side as well as server (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Aug 30, 2024
1 parent b867aa9 commit 57d46f5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import io.netty.buffer.ByteBufAllocator;
import io.netty.buffer.ByteBufUtil;
import io.rsocket.core.RSocketConnector;
import io.rsocket.frame.decoder.PayloadDecoder;
import io.rsocket.metadata.TaggingMetadataCodec;
import io.rsocket.metadata.WellKnownMimeType;
import io.rsocket.transport.netty.client.TcpClientTransport;
Expand All @@ -31,6 +32,7 @@ public List<ZoneStatus> getZones(String bindAddress, int port, String serializat

var socket = RSocketConnector
.create()
.payloadDecoder(PayloadDecoder.ZERO_COPY)
.metadataMimeType(WellKnownMimeType.MESSAGE_RSOCKET_ROUTING.getString())
.connect(TcpClientTransport.create(bindAddress, port))
.block();
Expand Down

0 comments on commit 57d46f5

Please sign in to comment.