summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-30 10:26:13 +0000
committerAndrea Shepard <andrea@torproject.org>2016-08-20 01:42:30 +0000
commit1c0c0022d8199a9b998a0c4e13a85a382abf7fb0 (patch)
treece1b551959dee91a707b6dd647e9deef9328f4e4 /src/or/or.h
parent5e571900b341b52a3176edaecfb6cbab8829efd1 (diff)
downloadtor-1c0c0022d8199a9b998a0c4e13a85a382abf7fb0.tar.gz
tor-1c0c0022d8199a9b998a0c4e13a85a382abf7fb0.zip
Compute thresholds for OOS from ConnLimit_ when setting options
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 1bac43c20a..262085ea62 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3699,6 +3699,10 @@ typedef struct {
int ConnLimit; /**< Demanded minimum number of simultaneous connections. */
int ConnLimit_; /**< Maximum allowed number of simultaneous connections. */
+ int ConnLimit_high_thresh; /**< start trying to lower socket usage if we
+ * have this many. */
+ int ConnLimit_low_thresh; /**< try to get down to here after socket
+ * exhaustion. */
int RunAsDaemon; /**< If true, run in the background. (Unix only) */
int FascistFirewall; /**< Whether to prefer ORs reachable on open ports. */
smartlist_t *FirewallPorts; /**< Which ports our firewall allows