blob: c8dde10434f3343a675ce1d829bd8cd3ae50a248 [file] [log] [blame]
Jens Geyereacd1d42019-11-20 19:03:14 +01001using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace Thrift
6{
7 public class TConfiguration
8 {
9 public const int DEFAULT_MAX_MESSAGE_SIZE = 100 * 1024 * 1024;
10 public const int DEFAULT_MAX_FRAME_SIZE = 16384000; // this value is used consistently across all Thrift libraries
11 public const int DEFAULT_RECURSION_DEPTH = 64;
12
13 public int MaxMessageSize { get; set; } = DEFAULT_MAX_MESSAGE_SIZE;
14 public int MaxFrameSize { get; set; } = DEFAULT_MAX_FRAME_SIZE;
15 public int RecursionLimit { get; set; } = DEFAULT_RECURSION_DEPTH;
16
17 // TODO(JensG): add connection and i/o timeouts
18 }
19}