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

markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new c6a60b6be2 Improve error handling for invalid settings header
c6a60b6be2 is described below

commit c6a60b6be2164507fcc6db6e703226cf474dcd5d
Author: Mark Thomas <[email protected]>
AuthorDate: Thu May 21 12:03:06 2026 +0100

    Improve error handling for invalid settings header
---
 java/org/apache/coyote/http2/Http2UpgradeHandler.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java 
b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
index 0272594482..a85ca5cb8d 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -294,8 +294,8 @@ class Http2UpgradeHandler extends AbstractStream implements 
InternalHttpUpgradeH
                     }
                     remoteSettings.set(key, value);
                 }
-            } catch (Http2Exception e) {
-                throw new 
ProtocolException(sm.getString("upgradeHandler.upgrade.fail", connectionId));
+            } catch (IllegalArgumentException | Http2Exception e) {
+                throw new 
ProtocolException(sm.getString("upgradeHandler.upgrade.fail", connectionId), e);
             }
         }
 


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

Reply via email to