Skip to content

Instantly share code, notes, and snippets.

View ti2ger92's full-sized avatar

Tyler Cummings-Bond ti2ger92

  • Discovery, Inc
  • New York City
View GitHub Profile
@ti2ger92
ti2ger92 / NettyServerSimplified.java
Created October 14, 2019 18:33
Reproduce issue with Netty 4.1.42
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.ByteBuf;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.codec.ProtocolDetectionState;
import io.netty.handler.codec.http.*;
import io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecFactory;
import io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeEvent;
import io.netty.handler.codec.http2.*;