grpc/grpc-java

Add support for HAProxy Protocol ("proxy protocol")

開放

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

 (12 則留言) (0 個反應) (0 位負責人)Java (3,742 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (11,124 顆星)
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 ?

貢獻者指南