summaryrefslogtreecommitdiff
path: root/src/or/hs_client.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-09-26 10:54:46 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-09-27 09:24:35 -0400
commitcf75c1af666b983c3a828f13683240153646247b (patch)
tree9881065c51c350c93bc82f4b42632760d2af5541 /src/or/hs_client.h
parent178a2bbcff74b7f9df2a192f45f1f91f3a9f935d (diff)
downloadtor-cf75c1af666b983c3a828f13683240153646247b.tar.gz
tor-cf75c1af666b983c3a828f13683240153646247b.zip
hs-v3: Don't fetch descriptor if we have a pending request
If 6 SOCKS requests are opened at once, it would have triggered 6 fetches which ultimately poke all 6 HSDir. We don't want that, if we have multiple SOCKS requests for the same service, do one fetch only. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_client.h')
-rw-r--r--src/or/hs_client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/hs_client.h b/src/or/hs_client.h
index 08ab7736b6..1d0201903b 100644
--- a/src/or/hs_client.h
+++ b/src/or/hs_client.h
@@ -27,6 +27,8 @@ typedef enum {
HS_CLIENT_FETCH_NOT_ALLOWED = 3,
/* We are missing information to be able to launch a request. */
HS_CLIENT_FETCH_MISSING_INFO = 4,
+ /* There is a pending fetch for the requested service. */
+ HS_CLIENT_FETCH_PENDING = 5,
} hs_client_fetch_status_t;
void hs_client_note_connection_attempt_succeeded(