You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2018/03/21 12:34:23 UTC

svn commit: r1827408 - in /tomcat/trunk/java/org/apache/coyote/http2: Http2Parser.java LocalStrings.properties

Author: remm
Date: Wed Mar 21 12:34:23 2018
New Revision: 1827408

URL: http://svn.apache.org/viewvc?rev=1827408&view=rev
Log:
i18n

Modified:
    tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java
    tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties

Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java?rev=1827408&r1=1827407&r2=1827408&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java Wed Mar 21 12:34:23 2018
@@ -183,7 +183,8 @@ class Http2Parser {
                 if (dest.remaining() < dataLength) {
                     swallow(streamId, dataLength, false, buffer);
                     // Client has sent more data than permitted by Window size
-                    throw new StreamException("Client sent more data than stream window allowed", Http2Error.FLOW_CONTROL_ERROR, streamId);
+                    throw new StreamException(sm.getString("http2Parser.processFrameData.window", connectionId),
+                            Http2Error.FLOW_CONTROL_ERROR, streamId);
                 }
                 if (buffer == null) {
                     input.fill(true, dest, dataLength);

Modified: tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties?rev=1827408&r1=1827407&r2=1827408&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/LocalStrings.properties Wed Mar 21 12:34:23 2018
@@ -56,6 +56,7 @@ http2Parser.processFrame.tooMuchPadding=
 http2Parser.processFrame.unexpectedType=Expected frame type [{0}] but received frame type [{1}]
 http2Parser.processFrameContinuation.notExpected=Connection [{0}], Continuation frame received for stream [{1}] when no headers were in progress
 http2Parser.processFrameData.lengths=Connection [{0}], Stream [{1}], Data length, [{2}], Padding length [{3}]
+http2Parser.processFrameData.window=Connection [{0}], Client sent more data than stream window allowed
 http2Parser.processFrameGoaway.payloadTooSmall=Connection [{0}]: Goaway payload size was [{1}] which is less than the minimum 8
 http2Parser.processFrameHeaders.decodingFailed=There was an error during the HPACK decoding of HTTP headers
 http2Parser.processFrameHeaders.decodingDataLeft=Data left over after HPACK decoding - it should have been consumed



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org