25 lines
1.5 KiB
Diff
25 lines
1.5 KiB
Diff
|
|
--- tomcat/java/org/apache/coyote/http2/Http2UpgradeHandler.java 2019/02/01 10:28:30 1852704
|
||
|
|
+++ tomcat/java/org/apache/coyote/http2/Http2UpgradeHandler.java 2019/02/01 10:28:34 1852705
|
||
|
|
@@ -335,7 +335,9 @@
|
||
|
|
}
|
||
|
|
|
||
|
|
if (overheadCount.get() > 0) {
|
||
|
|
- throw new ConnectionException("Too much overhead", Http2Error.ENHANCE_YOUR_CALM);
|
||
|
|
+ throw new ConnectionException(
|
||
|
|
+ sm.getString("upgradeHandler.tooMuchOverhead", connectionId),
|
||
|
|
+ Http2Error.ENHANCE_YOUR_CALM);
|
||
|
|
}
|
||
|
|
|
||
|
|
if (activeRemoteStreamCount.get() == 0) {
|
||
|
|
--- tomcat/java/org/apache/coyote/http2/LocalStrings.properties 2019/02/01 10:28:30 1852704
|
||
|
|
+++ tomcat/java/org/apache/coyote/http2/LocalStrings.properties 2019/02/01 10:28:34 1852705
|
||
|
|
@@ -141,6 +141,7 @@
|
||
|
|
upgradeHandler.stream.notWritable=Connection [{0}], Stream [{1}], This stream is not writable
|
||
|
|
upgradeHandler.stream.old=A new remote stream ID of [{0}] was requested but the most recent stream was [{1}]
|
||
|
|
upgradeHandler.tooManyRemoteStreams=The client attempted to use more than [{0}] active streams
|
||
|
|
+upgradeHandler.tooMuchOverhead=Connection [{0}], Too much overhead so the connection will be closed
|
||
|
|
upgradeHandler.unexpectedAck=Connection [{0}], Stream [{1}], A settings acknowledgement was received when not expected
|
||
|
|
upgradeHandler.unexpectedEos=Unexpected end of stream
|
||
|
|
upgradeHandler.upgrade=Connection [{0}], HTTP/1.1 upgrade to stream [1]
|
||
|
|
|