]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
hs-v3: Downgrade warning log when an intro circuit has closed
authorDavid Goulet <dgoulet@torproject.org>
Thu, 9 Nov 2017 19:30:20 +0000 (14:30 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 6 Dec 2017 00:39:46 +0000 (19:39 -0500)
When an intro circuit has closed, do not warn anymore when we can't find the
service. It is possible to hit that condition if the service is removed before
the circuits were fully closed. This happens in the case of deleting an
ephemeral service.

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/hs_service.c

index 944400a0e55df88972579fa956903d3d3d06ae2c..a659a126fc3c4e6a74bfae519e2c08541809b960 100644 (file)
@@ -3079,7 +3079,9 @@ hs_service_intro_circ_has_closed(origin_circuit_t *circ)
 
   get_objects_from_ident(circ->hs_ident, &service, &ip, &desc);
   if (service == NULL) {
-    log_warn(LD_REND, "Unable to find any hidden service associated "
+    /* This is possible if the circuits are closed and the service is
+     * immediately deleted. */
+    log_info(LD_REND, "Unable to find any hidden service associated "
                       "identity key %s on intro circuit %u.",
              ed25519_fmt(&circ->hs_ident->identity_pk),
              TO_CIRCUIT(circ)->n_circ_id);