[tor-commits] [tor/master] Mark state file dirty upon DROPTIMEOUTS command

asn at torproject.org asn at torproject.org
Tue Jun 23 17:32:13 UTC 2020


commit ad1f8b70b70107ad3e62b6c832bed044de06d6ea
Author: Mike Perry <mikeperry-git at torproject.org>
Date:   Fri Jun 12 01:05:29 2020 -0500

    Mark state file dirty upon DROPTIMEOUTS command
---
 src/feature/control/control_cmd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c
index 74d542ec6..ff1014632 100644
--- a/src/feature/control/control_cmd.c
+++ b/src/feature/control/control_cmd.c
@@ -57,6 +57,8 @@
 #include "feature/rend/rend_encoded_v2_service_descriptor_st.h"
 #include "feature/rend/rend_service_descriptor_st.h"
 
+#include "src/app/config/statefile.h"
+
 static int control_setconf_helper(control_connection_t *conn,
                                   const control_cmd_args_t *args,
                                   int use_defaults);
@@ -1419,6 +1421,7 @@ handle_control_droptimeouts(control_connection_t *conn,
 
   circuit_build_times_reset(get_circuit_build_times_mutable());
   send_control_done(conn);
+  or_state_mark_dirty(get_or_state(), 0);
   cbt_control_event_buildtimeout_set(get_circuit_build_times(),
                                      BUILDTIMEOUT_SET_EVENT_RESET);
 





More information about the tor-commits mailing list