@Override
    public void channelRead0(ChannelHandlerContext ctx, HttpRequest req) throws Exception {
        openChannelsSet.add(ctx.channel());
        if (req.getUri().equals("/hello") || req.getUri().equals("/hello/")) {
            String  responseContent = "<html>\n " + "<header><title>HttpNetty</title></header>\n " +
                    "<body>\n " + "Hello world\n " + "</body>\n " + "</html>";
            try {
                Thread.sleep(10000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            FullHttpResponse response =  new DefaultFullHttpResponse(HTTP_1_1, OK,
            Unpooled.unreleasableBuffer(Unpooled.copiedBuffer(responseContent, CharsetUtil.UTF_8)));
            response.headers().set(CONTENT_TYPE, "text/html");
            response.headers().set(CONTENT_LENGTH, response.content().readableBytes());
            ctx.writeAndFlush(response).addListener(ChannelFutureListener.CLOSE);;
            String url = req.getUri();
            controller.IncreaseCount();
            controller.addToIpMap(ctx);
            controller.addToConnectionDeque(ctx, url);

        } else {
            ctx.fireChannelRead(req);
        }
    }