grpc/grpc-java

Add support for HAProxy Protocol ("proxy protocol")

Open

#8,949 创建于 2022年2月28日

在 GitHub 查看
 (12 评论) (0 反应) (0 负责人)Java (11,124 star) (3,742 fork)batch import
enhancementhelp wanted

描述

Is there a way to add a CustomHandler to ChannelPipeline using NettyServerBuilder ?

I initialize my GrpcNettyServer by below:

NettyServerBuilder serverBuilder = 
    NettyServerBuilder
      .forPort(config.getPort())
      .addService();
      .intercept();
      .executor();
      .build();

All I want is to get the channel from the server and add a custom handler to the channel pipeline. Does NettyServerBuilder supports that option ?

贡献者指南