[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit ad1f8b70b70107ad3e62b6c832bed044de06d6ea
Author: Mike Perry <mikeperry-git@xxxxxxxxxxxxxx>
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);
 



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits