summaryrefslogtreecommitdiff
path: root/src/or/connection.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-08 15:54:30 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-19 02:02:17 -0400
commit8314fa5e5c8d300323589ff97599f8f93b847b78 (patch)
tree0d7f0a8e020731f090bbb64ef64b5938bde1b3ce /src/or/connection.c
parent424063e3b2b882d72943bda41279bd29a711ec55 (diff)
downloadtor-8314fa5e5c8d300323589ff97599f8f93b847b78.tar.gz
tor-8314fa5e5c8d300323589ff97599f8f93b847b78.zip
Implement sensible isolation for tunneled directory conns
One-hop dirconn streams all share a session group, and get the ISO_SESSIONGRP flag: they may share circuits with each other and nothing else. Anonymized dirconn streams get a new internal-use-only ISO_STREAM flag: they may not share circuits with anything, including each other.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r--src/or/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 5e5abca7aa..0fae11e1d4 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -868,7 +868,7 @@ connection_create_listener(const struct sockaddr *listensockaddr,
tor_socket_t s; /* the socket we're going to make */
uint16_t usePort = 0, gotPort = 0;
int start_reading = 0;
- static int global_next_session_group = -2;
+ static int global_next_session_group = SESSION_GROUP_FIRST_AUTO;
if (get_n_open_sockets() >= get_options()->_ConnLimit-1) {
warn_too_many_conns();