Skip to content

Commit

Permalink
Fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
idelpivnitskiy committed Sep 28, 2023
1 parent 94c95d8 commit a180235
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
final class AlpnChannelSingle extends ChannelInitSingle<String> {
private final Consumer<ChannelHandlerContext> onHandlerAdded;

AlpnChannelSingle(final Channel channel,
final ChannelInitializer channelInitializer) {
this(channel, channelInitializer, __ -> { });
}

AlpnChannelSingle(final Channel channel,
final ChannelInitializer channelInitializer,
final Consumer<ChannelHandlerContext> onHandlerAdded) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private Single<FilterableStreamingHttpConnection> createConnection(
final Channel channel, final ConnectionObserver connectionObserver,
final ReadOnlyTcpClientConfig tcpConfig) {
return new AlpnChannelSingle(channel, new TcpClientChannelInitializer(tcpConfig, connectionObserver),
connectionObserver).flatMap(protocol -> {
ctx -> { /* SslHandler will automatically start handshake on channelActive */ }).flatMap(protocol -> {
switch (protocol) {
case HTTP_1_1:
final H1ProtocolConfig h1Config = config.h1Config();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private static Single<NettyConnectionContext> alpnInitChannel(final SocketAddres
final StreamingHttpService service,
final boolean drainRequestPayloadBody,
final ConnectionObserver observer) {
return new AlpnChannelSingle(channel, new TcpServerChannelInitializer(config.tcpConfig(), observer), observer,
return new AlpnChannelSingle(channel, new TcpServerChannelInitializer(config.tcpConfig(), observer),
// Force a read to get the SSL handshake started. We initialize pipeline before
// SslHandshakeCompletionEvent will complete, therefore, no data will be propagated before we finish
// initialization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ private static Single<String> handshake(final Channel channel, final ConnectionO
" in the channel pipeline."));
}
} else {
result = new AlpnChannelSingle(channel, NoopChannelInitializer.INSTANCE, connectionObserver,
__ -> deferSslHandler.ready());
result = new AlpnChannelSingle(channel, NoopChannelInitializer.INSTANCE, ctx -> deferSslHandler.ready());
}
return result.shareContextOnSubscribe();
}
Expand Down

0 comments on commit a180235

Please sign in to comment.