@Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        trafficCounter.start();

        InetSocketAddress address = (InetSocketAddress) ctx.channel().remoteAddress();
        String ip = address.getHostString();

        if (msg instanceof HttpRequest) {
            System.out.println("in ChenelRead");
            FullHttpRequest request = (FullHttpRequest) msg;
            if (!request.getUri().equals("/falicon.ico")) {
                ServerStatus.addConnection();
            }
            if (is100ContinueExpected(request)) {
                ctx.write(new DefaultFullHttpResponse(HTTP_1_1, CONTINUE));
            }
            String uri = request.getUri();
            handleHttpRequest(ctx, (FullHttpRequest) msg, ip);
        }

    }