Increase the default max frame size to 16MB.
Patch: Ryan King
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1156731 13f79535-47bb-0310-9956-
ffa450edef68
*/
public static final int DEFAULT_BUF_CAPACITY = 1024;
/**
- * How big is the largest allowable frame? Defaults to Integer.MAX_VALUE.
+ * How big is the largest allowable frame? Defaults to 16MB.
*/
- public static final int DEFAULT_MAX_LENGTH = Integer.MAX_VALUE;
+ public static final int DEFAULT_MAX_LENGTH = 16384000;
private final TTransport underlying;
private final AutoExpandingBufferWriteTransport writeBuffer;
*/
public class TFramedTransport extends TTransport {
- protected static final int DEFAULT_MAX_LENGTH = 0x7FFFFFFF;
+ protected static final int DEFAULT_MAX_LENGTH = 16384000;
private int maxLength_;