Skip to content

Commit

Permalink
finagle-http2: modify H2ServerFilter to no longer swallow exceptions
Browse files Browse the repository at this point in the history
Problem/Solution

The `H2ServerFilter` currently swallows any exceptions that get
fired down the pipeline. There is nothing we currently know of
that should explicitly need to be caught here and blindly
swallowing exceptions could mask other issues. Let's remove
it.

JIRA Issues: CSL-8654

Differential Revision: https://phabricator.twitter.biz/D369185
  • Loading branch information
enbnt authored and jenkins committed Sep 16, 2019
1 parent 99d5de4 commit 12621ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Note that ``PHAB_ID=#`` and ``RB_ID=#`` correspond to associated messages in com
Unreleased
----------

Runtime Behavior Changes
~~~~~~~~~~~~~~~~~~~~~~~~

* finagle-http2: H2ServerFilter will no longer swallow exceptions that fire via
`exceptionCaught` in the Netty pipeline. `PHAB_ID=D369185`

19.9.0
------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ private[http2] final class H2ServerFilter(timer: Timer) extends ChannelDuplexHan
super.channelRead(ctx, msg)
}

override def exceptionCaught(ctx: ChannelHandlerContext, cause: Throwable): Unit = {
// Swallowed so as to not bork the parent pipeline. This includes
// GOAWAY messages.
()
}

override def close(ctx: ChannelHandlerContext, promise: ChannelPromise): Unit = {
val connectionHandler = ctx.pipeline.get(classOf[Http2ConnectionHandler])

Expand Down

0 comments on commit 12621ff

Please sign in to comment.