summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-01 14:16:25 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-01 15:20:37 -0400
commit49f88e77e5f9dec60e2409e1f6d3e3935c5eab69 (patch)
tree3db9c2fe6603a557b11e8cd6c9486612f858878c /src/or/config.c
parentf54a5cbfb6d58399ee152306fcd7e0c55292a173 (diff)
downloadtor-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.c4
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) \