netty5/codec-http2
Chris Vest b8e1341142
Future methods getNow() and cause() now throw on incomplete futures (#11594)
Motivation:
Since most futures in Netty are of the `Void` type, methods like `getNow()` and `cause()` cannot distinguish if the future has finished or not.
This can cause data race bugs which, in the case of `Void` futures, can be silent.

Modification:
The methods `getNow()` and `cause()` now throw an `IllegalStateException` if the future has not yet completed.
Most use of these methods are inside listeners, and so are not impacted.
One place in `AbstractBootstrap` was doing a racy read and has been adjusted.

Result:
Data race bugs around `getNow()` and `cause()` are no longer silent.
2021-08-24 15:47:27 +02:00
..
src Future methods getNow() and cause() now throw on incomplete futures (#11594) 2021-08-24 15:47:27 +02:00
pom.xml Add Zstd.isAvailable() check in ZstdOptions (#11597) 2021-08-19 11:10:40 +02:00