diff --git a/Sources/NIOHTTP2/HTTP2Parser.swift b/Sources/NIOHTTP2/HTTP2Parser.swift index 3f26e0f..a67e0bf 100644 --- a/Sources/NIOHTTP2/HTTP2Parser.swift +++ b/Sources/NIOHTTP2/HTTP2Parser.swift @@ -192,7 +192,6 @@ public final class HTTP2Parser: ChannelInboundHandler, ChannelOutboundHandler { public func channelInactive(ctx: ChannelHandlerContext) { self.reentrancyManager.eofType = .channelInactive self.reentrancyManager.process(ctx: ctx, self.process) - ctx.fireChannelInactive() } public func userInboundEventTriggered(ctx: ChannelHandlerContext, event: Any) { diff --git a/Tests/NIOHTTP2Tests/TestUtilities.swift b/Tests/NIOHTTP2Tests/TestUtilities.swift index bac07ac..745726d 100644 --- a/Tests/NIOHTTP2Tests/TestUtilities.swift +++ b/Tests/NIOHTTP2Tests/TestUtilities.swift @@ -79,6 +79,9 @@ extension XCTestCase { func assertDoHandshake(client: EmbeddedChannel, server: EmbeddedChannel, clientSettings: [HTTP2Setting] = nioDefaultSettings, serverSettings: [HTTP2Setting] = nioDefaultSettings, file: StaticString = #file, line: UInt = #line) throws { + client.pipeline.fireChannelActive() + server.pipeline.fireChannelActive() + // First the channels need to interact. self.interactInMemory(client, server, file: file, line: line)