Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP netty: use composite cumulator for perf flamegraph tests #7

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public final class TsiFrameHandler extends ByteToMessageDecoder implements Chann

public TsiFrameHandler(TsiFrameProtector protector) {
this.protector = checkNotNull(protector, "protector");
setCumulator(COMPOSITE_CUMULATOR);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public TsiHandshakeHandler(
this.handshaker = checkNotNull(handshaker, "handshaker");
this.handshakeValidator = checkNotNull(handshakeValidator, "handshakeValidator");
this.next = checkNotNull(next, "next");
setCumulator(COMPOSITE_CUMULATOR);
}

@Override
Expand Down Expand Up @@ -190,4 +191,4 @@ private void sendHandshake(ChannelHandlerContext ctx) throws GeneralSecurityExce
protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception {
handshaker.close();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ protected GrpcHttp2ConnectionHandler(
Http2Settings initialSettings) {
super(decoder, encoder, initialSettings);
this.channelUnused = channelUnused;
setCumulator(COMPOSITE_CUMULATOR);
}

/**
Expand Down