Netty 4.0.46.Final 和 4.1.10.Final 发布了,这些版本包含错误修复,性能增强和一些新功能,建议升级。Netty 4.0.46.Final 和 4.1.10.Final 有如下重要的更新:
NetUtil IPv6 bugs related to IPv4 and compression
Enable configuring available processors
Add support for SNIMatcher when using SslProvider.OPENSSL* and Java8+
Fix buffer leak in local transport when a close triggers the close of a remote peer and there are still messages in the inbound buffer.
Fix IllegalArgumentException when release a wrapped ByteBuffer on Java9
VoidChannelPromise not notified when exception is thrown.
Correctly handle read-only ByteBuf in ByteToMessageDecoder
Allow to free direct buffers on java9 again
NioEventLoop#rebuildSelector0 throws ClassCastException
Fix OpenSslCertificateException error code validation
Limit the maximum size of the allocated outbound buffer to MAX_ENCRYPTED_PACKET_LENGTH
Allow negative memoryAddress when calling PlatformDependent0.newDirectBuffer(...)
Recognizing TLS Extension "HeartBeat" as Valid TLS Packet
仅属于 4.1.10.Final 的重要更新:
Notify connect promise of ProxyHandler after codecs are removed
Ability to extend SniHandler and configure it with arbitrary runtime data
Do not throw ClassCastException when rule subnet version doesn't match remote IP version
Fix HTTP/2 dependency tree corruption
Avoid infinite loop in HTTP/2 distributor toString()
Use jndi-dns to obtain default name servers
netty-codec: Manage read-flow explicitly in MessageAggregator
Accept two ways to start HTTP/2 over clear text(version 2)
Netty是一个 Java 的开源高性能网络应用框架框架。Netty提供异步的、事件驱动的网络应用程序框架和工具,用以快速开发高性能、高可靠性的网络服务器和客户端程序。
也就是说,Netty 是一个基于NIO的客户、服务器端编程框架,使用Netty 可以确保你快速和简单的开发出一个网络应用,例如实现了某种协议的客户,服务端应用。Netty相当简化和流线化了网络应用的编程开发过程,例如,TCP和UDP的socket服务开发。
软件详情:http://netty.io/
来自:开源中国社区

