Jens Geyer | eacd1d4 | 2019-11-20 19:03:14 +0100 | [diff] [blame] | 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.Text; |
| 4 | |
| 5 | namespace 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 | } |