diff options
author | David Goulet <dgoulet@torproject.org> | 2017-05-25 10:28:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-08 20:29:34 -0400 |
commit | 15864a1b70c1061a89f97a2054b1c19788af7dbc (patch) | |
tree | 97af8f4193637d96034c8d21acd56b511914ca17 /src/or/hs_service.h | |
parent | 4a8cf17897ca23f8352a27c1bffb6ebfd68a1e0e (diff) | |
download | tor-15864a1b70c1061a89f97a2054b1c19788af7dbc.tar.gz tor-15864a1b70c1061a89f97a2054b1c19788af7dbc.zip |
prop224: Add a circuit has closed callback
When the circuit is about to be freed which has been marked close before, for
introduction circuit we now call this has_closed() callback so we can cleanup
any introduction point that have retried to many times or at least flag them
that their circuit is not established anymore.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r-- | src/or/hs_service.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h index dc80622e33..bc29c3d82b 100644 --- a/src/or/hs_service.h +++ b/src/or/hs_service.h @@ -270,6 +270,8 @@ int hs_service_receive_introduce2(origin_circuit_t *circ, const uint8_t *payload, size_t payload_len); +void hs_service_intro_circ_has_closed(origin_circuit_t *circ); + #ifdef HS_SERVICE_PRIVATE #ifdef TOR_UNIT_TESTS |