summaryrefslogtreecommitdiff
path: root/src/or/connection_edge.c
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/connection_edge.c
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/connection_edge.c')
-rw-r--r--src/or/connection_edge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index cc6e3d7c58..c63c350fd8 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -2860,6 +2860,8 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ)
origin_circ->p_streams = n_stream;
assert_circuit_ok(circ);
+ origin_circ->rend_data->nr_streams++;
+
connection_exit_connect(n_stream);
/* For path bias: This circuit was used successfully */