Why native epoll support is introduced in Netty?

后端 未结 2 1977
感动是毒
感动是毒 2021-01-31 04:41

I believe Java\'s NIO library will use epoll on Linux machines. What are all the advantages of using Epoll instead of NIO on Linux machines.

2条回答
  •  不知归路
    2021-01-31 05:44

    Netty's epoll transport uses epoll edge-triggered while java's nio library uses level-triggered. Beside this the epoll transport expose configuration options that are not present with java's nio like TCP_CORK, SO_REUSEPORT and more.

提交回复
热议问题