Skip to content

Commit

Permalink
Fire error down pipeline to properly close H2 multiplexer inbound stream
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcairo committed Nov 15, 2024
1 parent dd7cdb1 commit 911a95e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ package final class ServerConnectionManagementHandler: ChannelDuplexHandler {

package func errorCaught(context: ChannelHandlerContext, error: any Error) {
if self.closeConnectionOnError(error) {
context.fireErrorCaught(error)
context.close(mode: .all, promise: nil)
}
}
Expand Down

0 comments on commit 911a95e

Please sign in to comment.