HTTP/2 SimpleChannelPromiseAggregator failure condition
Motivation: If a SimpleChannelPromiseAggregator is failed before any new promises are generated, the failure is not propegated through to the aggregated promise. Modifications: - Failures should be allowed to occur even if no new promises have been generated Result: Failures are always allowed.
This commit is contained in:
parent
45067078d4
commit
e01630f48e
@ -261,7 +261,7 @@ public final class Http2CodecUtil {
|
||||
*/
|
||||
@Override
|
||||
public ChannelPromise setFailure(Throwable cause) {
|
||||
if (awaitingPromises()) {
|
||||
if (awaitingPromises() || expectedCount == 0) {
|
||||
++failureCount;
|
||||
if (failureCount == 1) {
|
||||
promise.setFailure(cause);
|
||||
|
Loading…
Reference in New Issue
Block a user