From 1881b8c781f3eea2ff59c1d78f66af4284d9e909 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 7 Dec 2018 19:46:38 +0100 Subject: [PATCH] Fix incorrect assert in Http2MultiplexCodec caused by 9f9aa1a. Motivation: 9f9aa1a did some changes related to fixing how we handle ctx.read() in child channel but did incorrectly change some assert. Modifications: Fix assert to be correct. Result: Code does not throw an AssertionError due incorrect assert check. --- .../java/io/netty/handler/codec/http2/Http2MultiplexCodec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java index 6de1dd2df9..46aa97a536 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/Http2MultiplexCodec.java @@ -805,7 +805,7 @@ public class Http2MultiplexCodec extends Http2FrameCodec { void fireChildReadComplete() { assert eventLoop().inEventLoop(); - assert readStatus == ReadStatus.IN_PROGRESS; + assert readStatus != ReadStatus.IDLE; unsafe.notifyReadComplete(unsafe.recvBufAllocHandle()); }