This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new 41fe12c47 remove ref to ByteStringParser.ParsingException (#720)
41fe12c47 is described below

commit 41fe12c479e5486c0458d742ff828cf5a0cf58e6
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Aug 18 13:38:47 2025 +0100

    remove ref to ByteStringParser.ParsingException (#720)
---
 .../scala/org/apache/pekko/http/impl/engine/http2/Http2Demux.scala | 7 -------
 1 file changed, 7 deletions(-)

diff --git 
a/http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2/Http2Demux.scala
 
b/http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2/Http2Demux.scala
index c1a91b71a..f05bbb446 100644
--- 
a/http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2/Http2Demux.scala
+++ 
b/http-core/src/main/scala/org/apache/pekko/http/impl/engine/http2/Http2Demux.scala
@@ -32,7 +32,6 @@ import pekko.stream.Attributes
 import pekko.stream.BidiShape
 import pekko.stream.Inlet
 import pekko.stream.Outlet
-import pekko.stream.impl.io.ByteStringParser.ParsingException
 import pekko.stream.scaladsl.Source
 import pekko.stream.stage.{
   GraphStageLogic,
@@ -411,12 +410,6 @@ private[http2] abstract class Http2Demux(http2Settings: 
Http2CommonSettings,
               case e: Http2Compliance.Http2ProtocolStreamException =>
                 resetStream(e.streamId, e.errorCode)
 
-              case e: ParsingException =>
-                e.getCause match {
-                  case null  => super.onUpstreamFailure(e) // fail with the 
raw parsing exception
-                  case cause => onUpstreamFailure(cause) // unwrap the cause, 
which should carry ComplianceException and recurse
-                }
-
               // handle every unhandled exception
               case NonFatal(e) =>
                 super.onUpstreamFailure(e)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to