grpc/grpc-java

Add support for HAProxy Protocol ("proxy protocol")

Aperta

#8949 aperta il 28 feb 2022

 (12 commenti) (0 reazioni) (0 assegnatari)Java (3742 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (11.124 stelle)
Metriche merge PR
 (Merge medio 23g 22h) (43 PR mergiate in 30 g)

Descrizione

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 ?

Guida contributor