Java高性能网络类库,Netty 4.0.32.Final 发布

fnn7 8年前

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)

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

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

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

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

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

  • Add support for RFC2385 on Linux (#4173)

完整列表请看 our issue tracker.

特别注意:

该版本包含两个新的 EpollChannelOptions 可用于使用原生的 epoll 传输层。

EpollChannelOption.TCP_FASTOPEN => TCP Fast Open 允许数据使用 SYN 和 SYN-ACK 包方式传输。

EpollChannelOption.TCP_MD5SIG => 启用 TCP MD5 认证。

感谢以下开发者:

来自:http://www.oschina.net/p/netty