diff options
author | David Goulet <dgoulet@torproject.org> | 2017-09-26 10:54:46 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-09-27 09:24:35 -0400 |
commit | cf75c1af666b983c3a828f13683240153646247b (patch) | |
tree | 9881065c51c350c93bc82f4b42632760d2af5541 /src/or/connection_edge.c | |
parent | 178a2bbcff74b7f9df2a192f45f1f91f3a9f935d (diff) | |
download | tor-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/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 9098cb6908..77dac62b09 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1576,6 +1576,7 @@ connection_ap_handle_onion(entry_connection_t *conn, * connection. */ goto end; case HS_CLIENT_FETCH_LAUNCHED: + case HS_CLIENT_FETCH_PENDING: case HS_CLIENT_FETCH_HAVE_DESC: return 0; case HS_CLIENT_FETCH_ERROR: |