Skip to content

Commit

Permalink
fix #490 Place LoggingHandler after ProxyHandler when there is such i…
Browse files Browse the repository at this point in the history
…n the pipeline
  • Loading branch information
violetagg committed Nov 1, 2018
1 parent 5df83ff commit 8b41943
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/main/java/reactor/netty/channel/BootstrapHandlers.java
Original file line number Diff line number Diff line change
Expand Up @@ -575,12 +575,17 @@ public void accept(ConnectionObserver connectionObserver, Channel channel) {
if (pipeline.get(NettyPipeline.SslHandler) != null) {
if (debugSsl) {
pipeline.addBefore(NettyPipeline.SslHandler,
NettyPipeline.SslLoggingHandler,
new LoggingHandler("reactor.netty.tcp.ssl"));
NettyPipeline.SslLoggingHandler,
new LoggingHandler("reactor.netty.tcp.ssl"));
}
pipeline.addAfter(NettyPipeline.SslHandler,
NettyPipeline.LoggingHandler,
handler);
NettyPipeline.LoggingHandler,
handler);
}
else if (pipeline.get(NettyPipeline.ProxyHandler) != null) {
pipeline.addAfter(NettyPipeline.ProxyHandler,
NettyPipeline.LoggingHandler,
handler);
}
else {
pipeline.addFirst(NettyPipeline.LoggingHandler, handler);
Expand Down

0 comments on commit 8b41943

Please sign in to comment.