diff options
author | Donncha O'Cearbhaill <donncha@donncha.is> | 2015-07-29 14:40:29 +0200 |
---|---|---|
committer | Donncha O'Cearbhaill <donncha@donncha.is> | 2015-08-25 16:44:31 +0200 |
commit | 1a75e6da007ddd3207726dc2b1293e22453c81af (patch) | |
tree | dea1d013a4a278c4134d2418fcd55f40be1131e7 /src/or/control.c | |
parent | 5eff39c846a62c1dbe4c0b9988f58e93e1229b98 (diff) | |
download | tor-1a75e6da007ddd3207726dc2b1293e22453c81af.tar.gz tor-1a75e6da007ddd3207726dc2b1293e22453c81af.zip |
Create a service-side descriptor cache
Adds a service descriptor cache which is indexed by service ID. This
descriptor cache is used to store service descriptors generated by a
local rendevous service.
The service-side cach can be queried by calling rend_cache_lookup_entry()
with the 'service' argument set to 1.
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index 220e7e514f..d237f8feb1 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1920,7 +1920,7 @@ getinfo_helper_dir(control_connection_t *control_conn, return -1; } - if (!rend_cache_lookup_entry(question, -1, &e)) { + if (!rend_cache_lookup_entry(question, -1, &e, 0)) { /* Descriptor found in cache */ *answer = tor_strdup(e->desc); } else { |