blob: c8dde10434f3343a675ce1d829bd8cd3ae50a248 [file] [log] [blame]
using System;
using System.Collections.Generic;
using System.Text;
namespace Thrift
{
public class TConfiguration
{
public const int DEFAULT_MAX_MESSAGE_SIZE = 100 * 1024 * 1024;
public const int DEFAULT_MAX_FRAME_SIZE = 16384000; // this value is used consistently across all Thrift libraries
public const int DEFAULT_RECURSION_DEPTH = 64;
public int MaxMessageSize { get; set; } = DEFAULT_MAX_MESSAGE_SIZE;
public int MaxFrameSize { get; set; } = DEFAULT_MAX_FRAME_SIZE;
public int RecursionLimit { get; set; } = DEFAULT_RECURSION_DEPTH;
// TODO(JensG): add connection and i/o timeouts
}
}