summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2015-05-20 17:33:59 +0000
committerYawning Angel <yawning@schwanenlied.me>2015-05-20 17:33:59 +0000
commitdb7bde08be59398488624bc377d1d5318182ee45 (patch)
treeea94749bcaf9952e55bbe74e80188bf2b3dc002e /src/or/or.h
parent32bd533ddac5bd7d594a81119449b3d30206eedd (diff)
downloadtor-db7bde08be59398488624bc377d1d5318182ee45.tar.gz
tor-db7bde08be59398488624bc377d1d5318182ee45.zip
Add "HiddenServiceMaxStreams" as a per-HS tunable.
When set, this limits the maximum number of simultaneous streams per rendezvous circuit on the server side of a HS, with further RELAY_BEGIN cells being silently ignored. This can be modified via "HiddenServiceMaxStreamsCloseCircuit", which if set will cause offending rendezvous circuits to be torn down instead. Addresses part of #16052.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 5bb080fdc5..af3496765e 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -818,6 +818,9 @@ typedef struct rend_data_t {
/** List of HSDir fingerprints on which this request has been sent to.
* This contains binary identity digest of the directory. */
smartlist_t *hsdirs_fp;
+
+ /** Number of streams associated with this rendezvous circuit. */
+ int nr_streams;
} rend_data_t;
/** Time interval for tracking replays of DH public keys received in