grpc/grpc-java

Add support for HAProxy Protocol ("proxy protocol")

Open

#8.949 geöffnet am 28. Feb. 2022

Auf GitHub ansehen
 (12 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (3.742 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (11.124 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 23T 22h) (43 gemergte PRs in 30 T)

Beschreibung

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 ?

Contributor Guide