Home  >  Q&A  >  body text

java - 关于Netty接收数据的问题?

PHP中文网PHP中文网2741 days ago482

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:40:05

    Client code
    finally {
    Thread.sleep(1000);

            group.shutdownGracefully();
        }

    Try writing like this. To put it simply, the work has been put into the thread, but the processing takes time, but you shut down gracefully before you have finished processing it. How does the server receive it

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 09:40:05

    Try setting TCL_NODELAY when creating a new server

    reply
    0
  • Cancelreply