grpc/grpc-java

Add support for HAProxy Protocol ("proxy protocol")

Open

#8,949 建立於 2022年2月28日

在 GitHub 查看
 (12 留言) (0 反應) (0 負責人)Java (3,742 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (11,124 star)
PR 合併指標
 (平均合併 23天 22小時) (30 天內合併 43 個 PR)

描述

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 ?

貢獻者指南