Netty 4.1.31.Final 釋出,經典開源 Java 網路服務框架
Netty 4.1.31.Finalofollow,noindex">釋出了 ,該版本包含錯誤修復,以及一些重要的改進和效能提升。除此之外,還提供了對TLSv1.3 的支援(通過 Java 11 或 netty-tcnative / netty-tcnative-boringssl-static 實現 )。
重要的變更內容:
-
Fix leak and corruption bugs in CompositeByteBuf (#8438 )
-
Optimize AbstractByteBuf.getCharSequence() in US_ASCII case (#8392 )
-
(fix) incorrect reachability assumption in ResourceLeakDetector (#8410 )
-
Correctly detect if KeyManagerFactory is supported by OpenSSL even when sun.security.x509.* can not be accessed and bouncycastle is not on the classpath. (#8415 )
-
Reduce overhead by ByteBufUtil.decodeString(...) which is used by
AbstractByteBuf.toString(...)
andAbstractByteBuf.getCharSequence(...)
(#8388 ) -
CompositeByteBuf.decompose(...) does not correctly slice content (#8403 )
-
Allow to use TLSv1.3 with netty-tcnative withe java versions prior to 11 (#8394 )
-
Add support for TLSv1.3#8293 )
-
Add support for boringssl and TLSv1.3 (#8412 )
-
Ensure OpenSslEngine will not try to call SSL_free multiple times even when constructor throws#8399 )
-
Add full JdkSslContext public constructor#8389 )
-
Prevent NPE when attempting to set client key material with no alias#8378 )
-
epoll_wait produces an EINVAL error since 4.1.30#8350 )
-
Correctly parse /etc/resolv.conf when contain multiple entries for searchdomain#8351 )
-
Correctly decrement pending bytes when submitting AbstractWriteTask fails#8349 )
-
Fix SelectableChannel support in NioEventLoop#8344 )
-
Added option to do busy-wait on epoll#8267 )
-
Ensure X509KeyManager methods are called on the correct time when using server-side and support more methods of ExtendedSSLSession#8283 )
-
Do the same extended checks as the JDK when a X509TrustManager is used with the OpenSSL provider#8307 )
檢視 4.1.31.Final 的 issue 追蹤 瞭解更多細節。
支援 TLSv1.3
在這個版本中,開發團隊以各種方式添加了對它的支援,當一下任何一個條件滿足時:
-
使用 Java11 或更高版本
-
使用 netty-tcnative(針對 OpenSSL 1.1.1+ 構建)和 Java8 +
-
使用 netty-tcnative-boringssl-static 和 Java8 +
即可啟用 TLSv1.3。也就是說預設情況下沒有啟用 TLSv1.3 ,所以如果你想使用它,你需要在配置 SslContextBuilder 時顯式啟用它以使用 TLSv1.3。
下載地址http://netty.io/downloads.html
Netty 是一個 Java 開源框架。Netty 提供非同步的、事件驅動的網路應用程式框架和工具,用以快速開發高效能、高可靠性的網路伺服器和客戶端程式。