Java高性能網絡類庫,Netty 4.0.32.Final 發布

fnn7 9年前發布 | 9K 次閱讀 Netty

Netty 提供異步的、事件驅動的網絡應用程序框架和工具,用以快速開發高性能、高可靠性的網絡服務器和客戶端程序。

體系結構圖

Java高性能網絡類庫,Netty 4.0.32.Final 發布

Netty 4.0.32.Final 發布了,該版本包含超過 30 項變化,包括 bug 修復、提升和新特性。最值得關注的改進有:

  • Discard read bytes after X reads to guard against OOME.(#4281) (#4275)

    </li>

  • Correctly reset markers for all allocations when using PooledByteBufAllocator(#4278)

    </li>

  • Ensure OpenSslEngine.unwrap(...) / wrap(...) correctly return HandshakeStatus.FINISHED (#4263)(#4235)

    </li>

  • Shutdown socket before close fd when using epoll transport (#4170) (#4275)

    </li>

  • Correctly set EPOLLOUT flag whe writeBytes(...) was not able to write everything (#4216) (#4205)

    </li>

  • Add support for RFC7413 on linux for server sockets (#4196)

    </li>

  • Add support for RFC2385 on Linux (#4173)

    </li> </ul>

    完整列表請看 our issue tracker.

    特別注意:

    該版本包含兩個新的 EpollChannelOptions 可用于使用原生的 epoll 傳輸層。

    EpollChannelOption.TCP_FASTOPEN => TCP Fast Open 允許數據使用 SYN 和 SYN-ACK 包方式傳輸。

    EpollChannelOption.TCP_MD5SIG => 啟用 TCP MD5 認證。

    感謝以下開發者: