diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-01 14:16:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-01 15:20:37 -0400 |
commit | 49f88e77e5f9dec60e2409e1f6d3e3935c5eab69 (patch) | |
tree | 3db9c2fe6603a557b11e8cd6c9486612f858878c /src/or/config.c | |
parent | f54a5cbfb6d58399ee152306fcd7e0c55292a173 (diff) | |
download | tor-49f88e77e5f9dec60e2409e1f6d3e3935c5eab69.tar.gz tor-49f88e77e5f9dec60e2409e1f6d3e3935c5eab69.zip |
Extract more constants from or.h
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 4fb4489fca..0507c43121 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -147,6 +147,10 @@ static const char unix_socket_prefix[] = "unix:"; * configuration. */ static const char unix_q_socket_prefix[] = "unix:\""; +/* limits for TCP send and recv buffer size used for constrained sockets */ +#define MIN_CONSTRAINED_TCP_BUFFER 2048 +#define MAX_CONSTRAINED_TCP_BUFFER 262144 /* 256k */ + /** macro to help with the bulk rename of *DownloadSchedule to * *DowloadInitialDelay . */ #define DOWNLOAD_SCHEDULE(name) \ |