Skip to content

Commit

Permalink
New netty version.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbva committed Aug 25, 2018
1 parent 50bfa12 commit 2cdad5e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 258 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.codec.http.HttpContentCompressor;
import io.netty.handler.codec.http.HttpServerCodec;
import io.netty.handler.ssl.SslHandler;
import java.io.IOException;
import java.io.PrintWriter;
Expand Down Expand Up @@ -112,14 +113,13 @@ public void start()
@Override
public void initChannel(SocketChannel ch)
{
ch.pipeline().addFirst("tracer", new HttpServerTracer());
if(sslContext != null)
{
SSLEngine engine = sslContext.createSSLEngine();
engine.setUseClientMode(false);
ch.pipeline().addLast("ssl", new SslHandler(engine));
}
ch.pipeline().addLast("codec", new HttpServerCodecProxy());
ch.pipeline().addLast("codec", new HttpServerCodec());
ch.pipeline().addLast("switch", new HttpWsSwitch(handlers));
ch.pipeline().addLast("handler", new HttpServerChannelHandler(HttpServerImpl.this));
ch.pipeline().addLast("compressor", new HttpContentCompressor());
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.27.Final</version>
<version>4.1.30.Final-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down

0 comments on commit 2cdad5e

Please sign in to comment.