diff options
author | Roger Dingledine <arma@torproject.org> | 2005-11-25 08:08:56 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-11-25 08:08:56 +0000 |
commit | fe221f3dff3fa1c79213f04261e4c7a70576b619 (patch) | |
tree | a1dc14128e52ea005a5953489fbb651cba3b046f /src/or/rendservice.c | |
parent | 6452aecedb2b0c498dcc7acddaca062c0b02bcc4 (diff) | |
download | tor-fe221f3dff3fa1c79213f04261e4c7a70576b619.tar.gz tor-fe221f3dff3fa1c79213f04261e4c7a70576b619.zip |
Start the process of treating internal circuits and exit circuits
separately. It's important to keep them separate because internal
circuits have their last hops picked like middle hops, rather than like
exit hops. So exiting on them will break the user's expectations.
- Stop cannibalizing internal circuits for general exits, and stop
cannibalizing exit circuits for rendezvous stuff.
- Don't let new exit streams attach to internal circuits.
- When deciding if we have enough circuits for internal and for exit,
don't count the wrong ones.
- Treat predicted resolves as predicted port 80 exits.
svn:r5457
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index ae2d10facc..a8f300c798 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -545,7 +545,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, size_t request_l circ_needs_uptime = rend_service_requires_uptime(service); /* help predict this next time */ - rep_hist_note_used_hidserv(time(NULL), circ_needs_uptime, 1); + rep_hist_note_used_internal(time(NULL), circ_needs_uptime, 1); /* Launch a circuit to alice's chosen rendezvous point. */ @@ -652,7 +652,7 @@ rend_service_launch_establish_intro(rend_service_t *service, const char *nicknam info(LD_REND, "Launching circuit to introduction point %s for service %s", nickname, service->service_id); - rep_hist_note_used_hidserv(time(NULL), 1, 0); + rep_hist_note_used_internal(time(NULL), 1, 0); ++service->n_intro_circuits_launched; launched = circuit_launch_by_nickname(CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, nickname, 1, 0, 1); |