Author: markt Date: Mon Jun 1 20:07:03 2015 New Revision: 1682985 URL: http://svn.apache.org/r1682985 Log: Use a constant for the default max frame size
Modified: tomcat/trunk/java/org/apache/coyote/http2/ConnectionSettings.java Modified: tomcat/trunk/java/org/apache/coyote/http2/ConnectionSettings.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/ConnectionSettings.java?rev=1682985&r1=1682984&r2=1682985&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/http2/ConnectionSettings.java (original) +++ tomcat/trunk/java/org/apache/coyote/http2/ConnectionSettings.java Mon Jun 1 20:07:03 2015 @@ -30,14 +30,16 @@ public class ConnectionSettings { public static final int DEFAULT_WINDOW_SIZE = (1 << 16) - 1; private static final long UNLIMITED = ((long)1 << 32); // Use the maximum possible private static final int MAX_WINDOW_SIZE = (1 << 31) - 1; + private static final int MIN_MAX_FRAME_SIZE = 1 << 14; private static final int MAX_MAX_FRAME_SIZE = (1 << 24) - 1; + private static final int DEFAULT_MAX_FRAME_SIZE = MIN_MAX_FRAME_SIZE; private volatile int headerTableSize = 4096; private volatile boolean enablePush = true; private volatile long maxConcurrentStreams = UNLIMITED; private volatile int initialWindowSize = DEFAULT_WINDOW_SIZE; - private volatile int maxFrameSize = MIN_MAX_FRAME_SIZE; + private volatile int maxFrameSize = DEFAULT_MAX_FRAME_SIZE; private volatile long maxHeaderListSize = UNLIMITED; public void set(int parameterId, long value) throws IOException { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org